Skip to main content

CVE-2026-96297: CWE-416 Use after free in MongoDB MongoDB Server

0
Medium
VulnerabilityCVE-2026-96297cvecve-2026-96297cwe-416
Published: 10/13/2026 (10/13/2026, 15:23:57 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: MongoDB Server

Description

Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no longer in use. Because that memory can be reused for other data before it is read, query results returned to the client may contain unrelated data from the server process. Depending on the state of memory at the time, the server process may also terminate unexpectedly. The behavior can occur when an authenticated user with read privileges runs an aggregate command that combines these two settings.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

MongoDB

MongoDB Server

Affected versions
>=8.3.0 <8.3.13>=8.0 <8.0.34>=7.0 <7.0.45>=9.0 <9.0.2
GitHub Actionsmore threats →ai
mongodb/mongo
pkg:github/mongodb/mongo
Affected versions
>=7.0 <7.0.45>=8.0 <8.0.34>=8.3.0 <8.3.13>=9.0 <9.0.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/13/2026, 16:03:39 UTC

Technical Analysis

This vulnerability involves use of freed memory in MongoDB Server's aggregation feature. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that has been released, potentially returning unrelated data to clients or causing server crashes. The flaw affects versions >=7.0 <7.0.45, >=8.0 <8.0.34, >=8.3.0 <8.3.13, and >=9.0 <9.0.2. It requires an authenticated user with read privileges to exploit via the aggregate command.

Potential Impact

An attacker with read privileges can cause the server to return incorrect query results containing unrelated data from memory or cause the server process to terminate unexpectedly. This could lead to data leakage or denial of service conditions. There is no indication of remote code execution or privilege escalation from the provided data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is confirmed, avoid running aggregate commands with an internal aggregation stage combined with a batch size of 0. Monitor MongoDB vendor advisories for updates and apply official patches once available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-09-22T21:59:02.204Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ace52f62cdf04f65680e4fa

Added to database: 10/13/2026, 15:49:10 UTC

Last enriched: 10/13/2026, 16:03:39 UTC

Last updated: 10/13/2026, 16:49:17 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses