
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-39178 is a SQL injection vulnerability in SOGo, an open-source groupware server developed by Alinto, affecting all versions before 5.12.7. Authenticated users can execute arbitrary SQL statements by manipulating the search parameter of the allContactSearch endpoint. The vulnerability was published on July 8, 2026, with a patch released the same day in SOGo v5.12.7. It carries a CVSS v3.1 base score of 6.3 (Medium) as assessed by CISA-ADP (Github Advisory, NVD).
The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), where the fetchContactsMatching method in SoObjects/SOGo/SQLSource.m constructed SQL queries by directly interpolating the user-supplied filter/search parameter without using a proper SQL adaptor for parameterization. The fix replaced raw string interpolation with EOQualifier-based SQL construction using the database adaptor's escaping mechanisms (appendSQLToString:withAdaptor:), and switched from a manual asSafeSQLLikeString approach to asSafeSQLString with proper qualifier formatting. Exploitation requires network access and valid credentials (low-privilege authenticated user), with no user interaction needed (GitHub Commit, Github Advisory).
Successful exploitation allows any authenticated SOGo user to execute arbitrary SQL statements against the backend database, resulting in low-to-moderate impacts on confidentiality, integrity, and availability. An attacker could extract sensitive data (e.g., contact records, user credentials, calendar data), modify or delete database records, or potentially disrupt service availability. Depending on database permissions and configuration, there is a risk of broader data exposure beyond the attacker's own account scope (Github Advisory, NVD).
There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time, as confirmed by CISA's SSVC assessment (exploitation: none) (NVD). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.149–0.157%, indicating a low near-term exploitation probability (Github Advisory). Exploitation is not automatable per CISA's assessment, as it requires authenticated access.
allContactSearch endpoint, typically accessible at a URL such as /SOGo/so/<username>/Contacts/allContactSearch.search query parameter. For example, append a payload like ' OR '1'='1 or a UNION-based statement to manipulate the underlying SQL query.search parameter, e.g., GET /SOGo/so/user/Contacts/allContactSearch?search=test%27%20OR%20%271%27%3D%271.allContactSearch endpoint containing SQL metacharacters (e.g., single quotes ', OR, UNION, SELECT, --) in the search parameter; unexpected outbound database connections from the SOGo server./SOGo/so/<user>/Contacts/allContactSearch with encoded or anomalous search values; database error messages or stack traces related to malformed SQL queries in application logs.UNION SELECT, comment sequences (--, /**/), or queries returning data from unrelated tables.The primary remediation is to upgrade SOGo to version 5.12.7 or later, which addresses the SQL injection by replacing direct string interpolation with proper SQL adaptor-based parameterization (SOGo Release, GitHub Commit). As a temporary workaround prior to patching, administrators should restrict access to the allContactSearch endpoint to trusted users only (e.g., via network-level controls or reverse proxy rules) and monitor database query logs for suspicious SQL patterns. Applying the principle of least privilege to the SOGo database account can also limit the potential impact of exploitation.
Fix availability across major Linux distributions and their releases.
bookworm
sogo: 5.8.0-2+deb12u3
sid
sogo: 5.12.7-1
trixie
sogo: 5.12.1-3+deb13u2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."