Skip to main content

SOGo CVE-2026-39178

| EUVDEUVD-2026-42499 MEDIUM
SQL Injection (CWE-89)
2026-07-08 cve@mitre.org GHSA-5fp2-8g3x-xw93
6.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid SOGo user credentials
  2. Delivery
    Authenticate to SOGo web or API interface
  3. Exploit
    Send crafted HTTP request to allContactSearch endpoint with SQL payload in search parameter
  4. Execution
    Backend SQL query executes attacker-controlled statement
  5. Impact
    Exfiltrate or manipulate contact database records

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 a valid, authenticated SOGo user session (CVSS PR:L confirms this). The vulnerable code path is specifically the search parameter of the allContactSearch endpoint, which must be reachable by the authenticated user - a standard condition for any SOGo user with contact access. No administrator or elevated privilege is needed beyond a basic account. Exploitation is limited by the authentication requirement: unauthenticated external attackers cannot directly reach the endpoint. Scope:Unchanged (S:U) means impact is confined to the database context SOGo runs under and does not automatically propagate to the underlying OS or other application databases. Non-default deployment factors (network isolation, VPN-only access, strict user provisioning) further reduce realistic risk beyond the raw CVSS score.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L scores 6.3 (Medium), reflecting a network-reachable, low-complexity flaw requiring only authenticated user access. The partial impact ratings (C:L/I:L/A:L) suggest the injection operates within a bounded database context rather than granting full server compromise. Against these signals, EPSS at 0.15% (5th percentile) is notably low for a SQL injection, indicating minimal observed exploitation activity in telemetry. There is no KEV listing and no POC identified, consistent with the low EPSS. Real-world risk is meaningful for organizations where untrusted but authenticated users exist (shared hosting, multi-tenant SOGo deployments), but lower in environments with strict user vetting. The Scope:Unchanged metric confirms blast radius is limited to the SOGo database. This is a genuine vulnerability warranting routine patching but not emergency response absent evidence of active targeting.

Exploit ScenarioDerived

An authenticated SOGo user - for example, a low-privilege shared-tenant account - submits a contact search request to the allContactSearch endpoint with a crafted search value such as a closing quote followed by a UNION SELECT or stacked query. The backend SQL statement incorporates the payload verbatim, allowing the attacker to exfiltrate rows from the contacts database or modify records within the database context SOGo operates under. No public exploit code has been identified at time of analysis, so exploitation currently requires manual crafting rather than use of a ready-made tool.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

SQL injection in SOGo's allContactSearch endpoint permits authenticated users to inject arbitrary SQL via the unsanitized search parameter, affecting all SOGo releases before 5.12.7. An attacker with a valid SOGo account can manipulate backend SQL queries to read, alter, or partially disrupt contact database contents - confirmed by both the upstream fix commit and the vendor's 5.12.7 release announcement. EPSS sits at the 5th percentile (0.15%) and no CISA KEV listing exists, indicating no public exploit identified at time of analysis despite the straightforward CWE-89 root cause.

RemediationAI

Upgrade SOGo to version 5.12.7 or later, as documented in the vendor release announcement at https://www.sogo.nu/news/2026/sogo-v5127-released.html and patched in commit 1f7e5d2b2c2047c44a6a9e05f73c36491cb96d21 on the Alinto/sogo GitHub repository. If an immediate upgrade is not feasible, consider deploying a WAF or reverse-proxy rule on the allContactSearch endpoint to reject requests whose search parameter contains SQL metacharacters (single quotes, semicolons, comment sequences such as '--' or '/*'); note this may block edge-case legitimate search terms and should be tested against real usage patterns. Additionally, ensure SOGo is not exposed to networks where untrusted or anonymous users could obtain credentials, as reducing the authenticated user pool directly limits exploitability. No workaround fully substitutes for the code-level fix.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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 providing calendaring, contacts, and email access over CalDAV, CardDAV, and ActiveSync. The allContactSearch endpoint processes user-supplied search terms against a backend relational database (typically PostgreSQL or MySQL). The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the search parameter is concatenated into a SQL query without parameterized binding or sufficient sanitization, allowing an authenticated caller to close the intended query context and append or modify SQL logic. No CPE strings were provided in the input data; affected scope is defined by the vendor as all releases prior to 5.12.7 per the release announcement and the fix commit at github.com/Alinto/sogo.

Know when the next one hits your stack

  • 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

Vendor (mitre) PRIMARY 6.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 6.3 MEDIUM

Network-accessible endpoint requires only a standard authenticated user (PR:L); SQL injection yields partial C/I/A impact within unchanged database scope.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
CVSS changed
Jul 09, 2026 - 16:22 NVD
6.3 (MEDIUM)
CVE Published
Jul 08, 2026 - 22:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 95% exploitable
Prevalence
Low
open-source groupware with niche enterprise adoption compared to mainstream platforms
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy