SecurityContext

CVE-2026-4358: MongoDB - Use After Free

  • Cve: CVE-2026-4358
  • Name: MongoDB - Use After Free
  • 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.
  • Impact: Authenticated users with write privileges can cause memory corruption, potentially leading to denial of service or arbitrary code execution.
  • Remediation: Update to the latest MongoDB version.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated with write privileges
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00385
  • Epss percentile: 0.33264
  • Assignee: [email protected]
  • Published at: 2026-03-17T20:16:15Z
  • Age in days: 252
  • Modified at: 2026-06-17T10:56:28Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-4358
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-415Double Free

Public exploits

UrlSourceAdded date
https://jira.mongodb.org/browse/SERVER-118849nvd2026-03-17

References

UrlSourceTags
https://jira.mongodb.org/browse/SERVER-118849nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
mongodb:mongodb>= 8.2.0, < 8.2.6; >= 8.0.0, < 8.0.20; >= 7.0.0, < 7.0.31nonvd/v1/products/mongodb/mongodb

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-03-17
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 159883
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports