Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to SOGo with low-priv account
-
DeliveryOpen change-password endpoint
-
ExploitSubmit password with SQL injection payload
-
ExecutionInject into UPDATE c_password statement
-
PersistExecute arbitrary SQL on PostgreSQL/MariaDB
-
ImpactRead or modify SOGo user table
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following: (1) a SOGo deployment prior to 5.12.7 using the SQL user-source backend on PostgreSQL or MariaDB; (2) userPasswordAlgorithm configured to a cleartext mode ('none', 'plain', or 'cleartext') so that passwords are stored without hashing - explicitly called out in the description and confirmed by the commented-out cleartext branch in SQLSource.m; (3) a low-privileged authenticated SOGo account that can reach the changePasswordForLogin flow (CVSS PR:L), with no user interaction needed. LDAP-backed user sources, hashed password schemes, and SOGo 5.12.7+ are not exploitable. CVSS AC:H further reflects that the attacker must craft a payload compatible with the surrounding UPDATE statement and the specific DB engine's quoting/escaping behavior. |
| Impact | Signals are largely consistent and point to moderate, not urgent, risk. CVSS 7.1 with vector AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L reflects network reach but high attack complexity and required low-privilege authentication (a valid SOGo account able to invoke the password-change flow). EPSS is 0.03% (8th percentile) and SSVC reports Exploitation: none and Automatable: no, while Technical Impact is total - meaning successful exploitation is impactful (full DB read/write of the SOGo schema, potentially other tenants' credentials) but unlikely to be mass-exploited. There is no CISA KEV listing and no public exploit identified. One nuance worth flagging: the vulnerability only manifests when cleartext password storage is configured with PostgreSQL or MariaDB - non-default for security-conscious deployments - so real-world exposure should be assessed against that configuration rather than treating every SOGo install as vulnerable. |
| Exploit ScenarioDerived | An attacker with valid SOGo credentials (their own account or a phished one) visits the change-password page and submits a new password containing a crafted single-quote-terminated SQL fragment; because the cleartext branch interpolates the value directly into UPDATE sogo_users SET c_password = '<input>' WHERE c_uid = '...', the appended SQL is executed against PostgreSQL/MariaDB. Depending on DB privileges, this can be used to read or modify other rows in the SOGo schema (including other users' cleartext passwords) or chain into broader DB compromise. No public PoC is identified, but the patch diff in PR #379 essentially documents the injection point. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
SQL injection in SOGo versions prior to 5.12.7 allows authenticated users to inject arbitrary SQL when changing their password, provided the deployment uses PostgreSQL or MariaDB as the user backend and stores cleartext passwords. The flaw resides in the changePasswordForLogin routine where the new password value is interpolated directly into an UPDATE statement (c_password = '%@'). No public exploit identified at time of analysis, EPSS is very low (0.03%), and SSVC marks exploitation as 'none' - but the patched upstream code (PR #379, fixed in 5.12.7) confirms the vulnerability.
RemediationAI
Vendor-released patch: upgrade to SOGo 5.12.7 or later, per the release notes at https://www.sogo.nu/news/2026/sogo-v5127-released.html and the upstream fix in https://github.com/Alinto/sogo/pull/379. Debian users should track the bug thread at https://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg2100131.html for distribution updates. If immediate upgrade is not possible, switch userPasswordAlgorithm away from cleartext ('none'/'plain'/'cleartext') to a hashed scheme such as ssha512 (which forces SOGo down a non-vulnerable code path; trade-off: existing cleartext passwords must be migrated or users will need a reset), or temporarily disable the user-facing password-change endpoint in the SOGo web UI and force admin-mediated resets (trade-off: helpdesk load). Restricting network access to the SOGo web interface to trusted ranges reduces but does not eliminate exposure because the precondition is an authenticated account.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SOGo is an open-source groupware server (calendar, address book, webmail) developed by Alinto. The affected code lives in SoObjects/SOGo/SQLSource.m, which implements user-source lookups and password operations against a relational database via the EOAdaptor abstraction. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): in changePasswordForLogin, the cleartext-mode branch built the UPDATE statement with NSString stringWithFormat and the @'%@' placeholder for the encrypted/new password, bypassing the EOKeyValueQualifier/appendSQLToString:withAdaptor: parameterization used elsewhere. The fix (commit referenced in PR #379) rewrites the path to use EOKeyValueQualifier objects for both c_password and c_uid with adaptor-aware SQL emission, removes the ad-hoc quote-doubling, and applies the same pattern to checkLogin and fetchContactsMatching. The flaw is database-engine-specific because exploitation depends on backend SQL semantics that accept the injected payload, hence the explicit PostgreSQL/MariaDB scoping.
Know when Sogo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
1DescriptionCVE.org
SOGo before 5.12.7, when PostgreSQL or MariaDB is used, and cleartext passwords are stored, allows SQL injection. This is related to c_password = '%@' in changePasswordForLogin.
Executive ViewAI
SOGo versions before 5.12.7 contain a SQL injection vulnerability in the password change function affecting authenticated users on PostgreSQL or MariaDB backends storing plaintext passwords, with no public exploit identified at time of analysis. Attackers with valid credentials can manipulate database records to compromise user accounts and access sensitive data. Vendor patch 5.12.7 is available and should be deployed immediately to eliminate this injection vector.
Apply vendor patch. If immediate patching is delayed: restrict password change operations to authorized administrators only, enable database audit logging on UPDATE statements targeting credential fields, and enforce encrypted database connections.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Cross-site request forgery (CSRF) vulnerability in SOGo before 3.1.0. Rated high severity (CVSS 8.8), this vulnerability
Alinto Sogo 5.12.3 is vulnerable to Cross Site Scripting (XSS) via the theme parameter.
alinto SOGo 5.12.3 is vulnerable to Cross Site Scripting (XSS) via the "userName" parameter. Rated medium severity (CVSS
Password-reset token interception in SOGo before 5.12.11 lets unauthenticated remote attackers redirect account-recovery
Incomplete blacklist in SOGo before 2.3.12 and 3.x before 3.1.1 allows remote authenticated users to obtain sensitive in
SOGo 2.x before 2.4.1 and 3.x through 5.x before 5.1.1 does not validate the signatures of any SAML assertions it receiv
SQL injection in Alinto SOGo versions prior to 5.12.7 allows authenticated remote attackers to manipulate database queri
Memory leak in SOGo 2.3.7 allows remote attackers to cause a denial of service (memory consumption) via a large number o
SOGo before version 5.12.5 contains a cross-site scripting (XSS) vulnerability affecting the events, tasks, and contacts
Multiple cross-site scripting (XSS) vulnerabilities in the Web Calendar in SOGo before 2.2.0 allow remote attackers to i
Multiple cross-site scripting (XSS) vulnerabilities in the View Raw Source page in the Web Calendar in SOGo before 3.1.3
Stored XSS in Alinto SOGo's ICS calendar invitation viewer enables a remote unauthenticated attacker to execute arbitrar
EUVD-2026-30213
GHSA-37h6-wqp6-qg5g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB