Skip to main content
VulnerabilityPublished

CVE-2026-4358: MongoDB Server · Double Free

Affects MongoDB ServerSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
MongoDB IncMongoDB ServerAffected
  • >=8.2 <8.2.6
Fixed in
  • 8.2.6
MongoDB IncMongoDB ServerAffected
  • >=8.0 <8.0.20
Fixed in
  • 8.0.20
MongoDB IncMongoDB ServerAffected
  • >=7.0 <7.0.31
Fixed in
  • 7.0.31

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.

References

Community reviews

Loading reviews…