CVE-2026-39178: SQL Injection in SOGo allContactSearch – Patch to 5.12.7
SOGo, a groupware and collaboration platform, contains a SQL injection flaw in its contact search functionality. An authenticated attacker can craft malicious input through the search parameter to execute arbitrary database queries, potentially extracting sensitive information or modifying data. The vulnerability affects versions before 5.12.7 and requires valid user credentials to exploit.
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 search parameter of the allContactSearch endpoint.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-39178 is a CWE-89 SQL injection vulnerability in the allContactSearch endpoint of SOGo. The flaw exists in improper input sanitization of the search parameter, allowing authenticated users to break out of intended SQL queries and execute attacker-controlled statements against the backend database. The vulnerability carries a CVSS 3.1 score of 6.3 (MEDIUM severity) with a network attack vector, low complexity, and requiring low privileges, affecting confidentiality, integrity, and availability equally.
Business impact
Exploitation enables unauthorized access to contact information and user data stored in SOGo's database. Attackers with valid credentials—whether from internal compromise or credential theft—can exfiltrate sensitive contacts, modify or delete records, or disrupt service availability. For organizations relying on SOGo for email and calendar management, this could expose customer lists, internal communications metadata, or personally identifiable information (PII) depending on stored content and downstream integrations.
Affected systems
SOGo versions prior to 5.12.7 are affected. The vulnerability requires authentication, limiting the attack surface to users with valid SOGo accounts. Organizations running self-hosted SOGo deployments or cloud instances should verify their current version against the 5.12.7 release threshold.
Exploitability
This vulnerability has a low barrier to exploitation for authenticated users. No exploit has been reported in the wild, and the vulnerability is not listed on CISA's KEV catalog. However, the low complexity and network accessibility mean that once an attacker gains valid credentials—through phishing, insider access, or credential reuse—they can readily craft SQL injection payloads without specialized tools or deep technical knowledge.
Remediation
Upgrade SOGo to version 5.12.7 or later. This patch release addresses the input validation flaw in the allContactSearch endpoint. Organizations should verify patch application in test environments first, particularly for production groupware systems where continuity is critical.
Patch guidance
Obtain and deploy SOGo 5.12.7 or later from the official SOGo project repository or your distribution vendor. Follow standard change management practices: test the patch in a non-production environment, schedule downtime if required, back up configuration and data, and validate contact search and other groupware functions post-deployment. Document the patch version applied for compliance tracking.
Detection guidance
Monitor for SQL error messages or unusual database activity from SOGo processes, particularly around the allContactSearch endpoint. Review application logs for malformed or unexpected search parameters containing SQL metacharacters (single quotes, semicolons, UNION keywords, etc.). Network-level detection can flag outbound database connections with suspicious query patterns from the SOGo application server. Implement input validation logging if available in SOGo configuration.
Why prioritize this
Despite MEDIUM severity, this vulnerability merits prompt attention because it directly compromises contact data—often business-critical and sensitive—and affects integrity as well as confidentiality. The low attack complexity and authentication-only requirement mean a compromised user account or insider threat becomes a direct path to database manipulation. Organizations with strict data protection obligations (GDPR, HIPAA, etc.) should treat this with elevated urgency.
Risk score, explained
The CVSS 3.1 score of 6.3 reflects the balance between limited scope (MEDIUM severity) and real impact. A network-accessible endpoint combined with low complexity and low privilege requirements would suggest higher risk, but the authentication requirement and limited scope (confidentiality, integrity, and availability each partially affected) moderate the score to MEDIUM. For organizations where SOGo holds sensitive contact or PII data, effective risk may be materially higher than the base score suggests.
Frequently asked questions
Does this vulnerability allow unauthenticated exploitation?
No. The vulnerability explicitly requires authenticated access—an attacker must have valid SOGo credentials. However, credential compromise through phishing, password reuse, or insider threats significantly lowers the practical barrier.
What is the difference between 5.12.6 and 5.12.7?
Version 5.12.7 includes the patch for CVE-2026-39178. Verify the exact fix details in the official SOGo release notes or security advisory to confirm all SQL injection vectors in the allContactSearch endpoint are addressed.
Can I mitigate this without patching immediately?
Temporary mitigations might include restricting SOGo API access via firewall rules to trusted IP ranges, enforcing strong authentication (MFA), and limiting user account provisioning to reduce credential compromise risk. However, these are not substitutes for patching and should be combined with an urgent upgrade plan.
Will patching affect my SOGo contacts or calendar data?
Patching to 5.12.7 should not modify or delete existing data. Follow standard backup and testing practices before applying any patch to production systems to ensure continuity.
This analysis is based on the published CVE record and CVSS assessment as of the date noted. Patch availability, version details, and remediation steps should be verified against official SOGo project advisories and release notes. Organizations should conduct their own risk assessment based on deployment scope, data sensitivity, and threat model. No exploit code or weaponized proof-of-concept is provided; the purpose of this page is informational and defensive. 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