CVE-2026-4358: MongoDB Server · Double Free
Affects MongoDB ServerSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium · fixed in 8.2.6 : update MongoDB Server when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.2.6, 8.0.20, 7.0.31
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade MongoDB Server to 8.2.6, 8.0.20 or 7.0.31.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB IncMongoDB Server | Affected
| Fixed in
|
| MongoDB IncMongoDB Server | Affected
| Fixed in
|
| MongoDB IncMongoDB Server | Affected
| Fixed in
|
AI-suggested
Organizations should implement the following specific mitigations: 1) Restrict write privileges strictly to trusted and authenticated users to minimize the attack surface. 2) Monitor and audit aggregation queries, especially those using $lookup, for unusual or suspicious patterns that could indicate exploitation attempts. 3) Employ network segmentation and firewall rules to limit access to MongoDB servers from untrusted networks. 4) Apply principle of least privilege to database users and roles to reduce the impact of compromised credentials. 6) Consider deploying runtime memory protection tools or sandboxing MongoDB processes to mitigate potential exploitation of memory corruption. 7) Conduct regular security assessments and penetration testing focused on database security to detect potential misuse of aggregation queries. These steps go beyond generic advice by focusing on query monitoring, strict privilege management, and proactive patch management tailored to this vulnerability's characteristics.
Description
A specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk.