Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-39179
SOGo vulnerability analysis and mitigation

Overview

CVE-2026-39179 is a SQL injection vulnerability in SOGo (the open-source groupware server maintained by Alinto) affecting all versions before 5.12.7. Authenticated users can execute arbitrary SQL statements by injecting malicious input via the newPassword parameter in the password change functionality. The vulnerability was published on July 8, 2026, with a patch released in SOGo v5.12.7. It carries a CVSS v3.1 base score of 6.3 (Medium), assessed by CISA-ADP (Github Advisory, NVD).

Technical details

The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), where the changePasswordForLogin method in SoObjects/SOGo/SQLSource.m constructed SQL UPDATE statements using string formatting with unsanitized user input rather than parameterized queries or a proper SQL adaptor (SOGo Commit). The vulnerable code used [NSString stringWithFormat:] to directly embed the newPassword value (after encryption) and the login into the SQL string, allowing an attacker to break out of the string literal context. The fix replaced direct string interpolation with EOKeyValueQualifier objects and the appendSQLToString:withAdaptor: method, which properly escapes values through the database adaptor layer. Exploitation requires a valid authenticated session (low privileges), and no user interaction beyond authentication is needed (Github Advisory).

Impact

A successfully exploited vulnerability allows an authenticated attacker to execute arbitrary SQL statements against the SOGo backend database, potentially reading sensitive data (user credentials, calendar entries, contacts, emails metadata), modifying or deleting records, and depending on database permissions, potentially escalating to OS-level command execution via database features (e.g., xp_cmdshell on MSSQL or COPY TO/FROM on PostgreSQL). The confidentiality, integrity, and availability impacts are each rated Low in the CVSS assessment, reflecting that the scope is limited to the SOGo database and exploitation requires authentication (Github Advisory, NVD).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (Github Advisory). CISA's SSVC assessment classifies exploitation as "none" and the vulnerability as not automatable, with only partial technical impact (NVD). The EPSS score is approximately 0.149–0.157%, placing it in the lower percentiles for near-term exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Authentication: Obtain valid credentials for a SOGo account on a target instance running a version prior to 5.12.7. Standard user-level access is sufficient.
  2. Locate the password change endpoint: Navigate to the SOGo web interface and identify the password change functionality, typically accessible via user settings or a dedicated API endpoint (e.g., a POST request to the SOGo password change API).
  3. Craft a malicious payload: Intercept the password change HTTP request (e.g., using Burp Suite) and modify the newPassword parameter to include SQL injection syntax. For example, a payload like newpass' , c_uid = c_uid -- could manipulate the UPDATE statement, or more destructively, newpass'; DROP TABLE users; -- depending on the database backend and permissions.
  4. Submit the request: Send the crafted request to the server. The vulnerable changePasswordForLogin method will incorporate the unsanitized input directly into the SQL UPDATE statement.
  5. Observe results: Depending on the injected payload, the attacker can modify arbitrary columns, extract data via error-based or time-based blind SQL injection techniques, or potentially execute database-level commands if the database user has elevated privileges (SOGo Commit, Github Advisory).

Indicators of compromise

  • Network: Unusual or malformed POST requests to the SOGo password change API endpoint containing SQL metacharacters (e.g., single quotes ', double dashes --, semicolons ;, SQL keywords like SELECT, DROP, UNION) in the newPassword field.
  • Logs: SOGo application logs or database query logs showing malformed or unexpected SQL UPDATE statements originating from the password change function; database error messages related to SQL syntax errors triggered by injection attempts.
  • Database: Unexpected modifications to user records beyond the c_password column; unauthorized changes to other columns or tables; new database objects (tables, stored procedures) created by the SOGo database user.
  • Process/Application: Repeated password change requests from a single authenticated user in a short time window, potentially indicating automated injection probing.

Mitigation and workarounds

The primary remediation is to upgrade SOGo to version 5.12.7 or later, which replaces the vulnerable string-formatted SQL construction with parameterized queries using the EOKeyValueQualifier adaptor pattern (SOGo Release, SOGo Commit). As a defense-in-depth measure, restrict the database user account used by SOGo to the minimum necessary privileges (SELECT, INSERT, UPDATE on required tables only), which limits the blast radius of any SQL injection. There is no documented configuration-based workaround that mitigates the vulnerability without upgrading.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

sogo: 5.8.0-2+deb12u3

Fixed

sid

sogo: 5.12.7-1

Fixed

trixie

sogo: 5.12.1-3+deb13u2

Fixed

Ubuntu

Unknown

bionic (esm-apps)

sogo

Unknown

devel

sogo

Unknown

focal (esm-apps)

sogo

Unknown

jammy

sogo

Unknown

jammy (esm-apps)

sogo

Unknown

resolute

sogo

Unknown

resolute (esm-apps)

sogo

Unknown

xenial (esm-apps-legacy)

sogo

Unknown

SourceThis report was generated using AI

Related SOGo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93453HIGH8.7
  • SOGo logoSOGo
  • cpe:2.3:a:alinto:sogo
NoYesSep 18, 2026
CVE-2026-8851HIGH8.6
  • SOGo logoSOGo
  • sogo
NoYesMay 18, 2026
CVE-2026-46446HIGH7.1
  • SOGo logoSOGo
  • sogo
NoYesMay 14, 2026
CVE-2026-39179MEDIUM6.3
  • SOGo logoSOGo
  • sogo
NoYesJul 08, 2026
CVE-2026-39178MEDIUM6.3
  • SOGo logoSOGo
  • sogo
NoYesJul 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management