CVE-2026-39179: SOGo SQL Injection Vulnerability in Password Change Function
SOGo before version 5.12.7 contains a SQL injection vulnerability in its password change feature. An authenticated user can manipulate the password field during a password change request to inject malicious SQL commands directly into the database. This requires the attacker to have valid login credentials, which limits the initial attack surface, but once inside the system, an attacker could read sensitive data, modify records, or disrupt database operations.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Weaknesses (CWE)
- CWE-89
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-08 / 2026-07-09
NVD description (verbatim)
A SQL injection vulnerability in SOGo before 5.12.7 allows authenticated users to execute arbitrary SQL statements via the newPassword parameter in the password change functionality.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability is a classic SQL injection (CWE-89) affecting SOGo's password change functionality. The newPassword parameter fails to properly sanitize or parameterize user input before passing it to SQL queries. An authenticated attacker can craft a malicious password string containing SQL metacharacters and syntax to break out of the intended query context and execute arbitrary SQL. The CVSS 3.1 score of 6.3 (Medium) reflects the requirement for prior authentication, but acknowledges confidentiality, integrity, and availability impacts are all feasible.
Business impact
Organizations relying on SOGo for mail, calendar, and collaboration services face potential data breaches through authenticated lateral movement. An employee or compromised account holder can access other users' information stored in the database, modify system data, or cause availability issues. For deployments with sensitive data or strict compliance requirements, this represents a meaningful risk even at the medium severity level due to the post-authentication nature of exploitation.
Affected systems
SOGo versions prior to 5.12.7 are affected. Organizations running SOGo should identify deployed versions immediately. The advisory does not specify whether earlier major versions (e.g., 5.11.x, 5.10.x) contain the same flaw; consult the vendor's security bulletin to determine your full patch scope.
Exploitability
The vulnerability requires an attacker to possess valid SOGo credentials, which significantly raises the barrier compared to unauthenticated exploits. However, once authenticated, exploitation is straightforward—no special techniques or bypasses are needed. In environments with weak account management, shared credentials, or compromised user accounts, this becomes a practical risk. The attack is reliably reproducible and does not depend on timing, race conditions, or environmental factors.
Remediation
Upgrade SOGo to version 5.12.7 or later. This update includes input validation and parameterized query fixes for the password change function. Organizations should test the upgrade in a staging environment first to ensure compatibility with existing configurations and integrations before rolling out to production.
Patch guidance
Apply SOGo 5.12.7 or a later patched version as soon as feasible within your change management process. Prioritize this if your SOGo instance is internet-facing or accessible to a large internal user population. Verify the patch version through the official SOGo release notes or your distribution channel. If you maintain custom authentication or password-change integrations, confirm they remain functional after patching.
Detection guidance
Review SOGo access logs and database query logs for unusual SQL syntax or errors in password-change requests, particularly those containing quotes, semicolons, or SQL keywords in the password field. Monitor for failed database queries or exceptions occurring during user password changes. If you have a SIEM, correlate failed authentication attempts with subsequent successful logins using previously-compromised accounts. Check for any data exfiltration indicators or unexpected database modifications around the time frames of potential exploitation.
Why prioritize this
Although SOGo is not yet on CISA's KEV catalog, the post-authentication SQL injection is a classic privilege-escalation path. Organizations should treat this as moderate-to-high priority based on their own risk profile: internet-facing SOGo instances or those with high user populations warrant faster patching. Less critical internal deployments with strong access controls can follow a standard patching cycle, but should not be deferred indefinitely.
Risk score, explained
The CVSS 6.3 (Medium) rating appropriately reflects the authentication requirement (reducing attack likelihood), while acknowledging that confidentiality, integrity, and availability impacts are all possible once exploitation occurs. The score does not account for organizational factors—your actual risk may be higher if users have broad database access or if SOGo is critical to business operations. Conversely, if your deployment is tightly segmented and password changes are infrequent, your operational risk may be lower.
Frequently asked questions
Do I need to change user passwords after patching SOGo?
No, patching to 5.12.7 itself does not require a password reset. However, if you suspect the vulnerability was exploited in your environment, consider resetting passwords for sensitive accounts as part of your incident response. Focus on accounts with database-level privileges or access to sensitive data.
What if I can't patch immediately?
Implement compensating controls: restrict SOGo network access to a VPN or trusted IP ranges, monitor password-change operations closely for anomalous queries, and disable or restrict the password-change feature if feasible. These measures are temporary; plan a patching window as soon as possible.
Is this vulnerability being actively exploited?
As of the advisory publication date (July 2026), CISA has not added this to the Known Exploited Vulnerabilities (KEV) catalog. However, the relative simplicity of post-authentication SQL injection means that public exploitation could occur once details circulate. Do not assume the absence of public exploit code equals absence of exploitation risk.
Does this vulnerability allow remote code execution?
No. The vulnerability is limited to SQL injection against the database layer. Remote code execution is not possible unless the underlying database configuration permits extended stored procedures or file-write capabilities—a separate misconfiguration. Standard SOGo deployments are not at risk for RCE from this flaw alone.
This analysis is provided for informational and educational purposes. It is not a substitute for vendor advisories, penetration testing, or formal vulnerability assessments. Organizations should verify all patch versions and compatibility against their specific SOGo deployments and configurations. The vulnerability details and CVSS score are accurate as of the publication date; consult official SOGo security bulletins and NIST NVD for the most current information. No warranty is provided; use this information at your own risk. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-53648MEDIUMSQL Misconfiguration in Apache Gravitino UI – MEDIUM Severity
- CVE-2025-71332MEDIUMSQL Injection in Flowise importChatflows API – MEDIUM Severity Credential Extraction
- CVE-2026-0075MEDIUMAndroid SQL Injection in Contacts Database – Privilege Escalation Risk
- CVE-2026-10039MEDIUMFrontend Admin WordPress Plugin SQL Injection Vulnerability
- CVE-2026-10155MEDIUMSQL Injection in Bdtask Multi-Store Inventory Management System 1.0
- CVE-2026-10170MEDIUMSQL Injection in code-projects Visitor Management System 1.0
- CVE-2026-10171MEDIUMSQL Injection in code-projects Online Music Site 1.0 AdminUpdateAlbum.php
- CVE-2026-10176MEDIUMSQL Injection in Aider-AI Aider 0.86.3 Code Generation