CVE-2026-8336: CWE-416: Use After Free in MongoDB, Inc. MongoDB Server
CVE-2026-8336 is a use-after-free vulnerability in MongoDB Server that can be triggered by an authenticated user invoking certain server-side JavaScript functions, leading to a denial-of-service (DoS) condition by crashing the mongod process. It affects MongoDB Server versions 7. 0 prior to 7. 0. 34, 8. 0 prior to 8. 0. 23, 8. 2 prior to 8. 2.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-8336) is a use-after-free issue (CWE-416) in MongoDB Server's handling of certain server-side JavaScript execution paths. Specifically, after invoking the internal function $_internalJsEmit or the mapreduce map function in a certain manner, subsequent use of server-side JavaScript features like $where, $function, or the mapreduce reduce stage can cause the mongod process to crash. The flaw requires authenticated access and affects multiple MongoDB Server versions before the specified patched releases. The CVSS 4.0 base score is 7.7, indicating a high severity due to network attack vector, partial complexity, and significant impact on confidentiality, integrity, and availability.
Potential Impact
An authenticated user can exploit this vulnerability to cause a denial-of-service by crashing the mongod process, resulting in service disruption. There is no indication of remote code execution or data corruption beyond the DoS impact. The vulnerability affects multiple recent MongoDB Server versions prior to the fixed releases.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The affected versions are listed, but no explicit patch or official fix information is provided in the available data. Until a patch is confirmed, avoid using the $_internalJsEmit function directly and exercise caution with server-side JavaScript features such as $where, $function, and mapreduce commands in environments where authenticated users have access. Monitor MongoDB's official advisories for updates and apply patches promptly once available.
CVE-2026-8336: CWE-416: Use After Free in MongoDB, Inc. MongoDB Server
Description
CVE-2026-8336 is a use-after-free vulnerability in MongoDB Server that can be triggered by an authenticated user invoking certain server-side JavaScript functions, leading to a denial-of-service (DoS) condition by crashing the mongod process. It affects MongoDB Server versions 7. 0 prior to 7. 0. 34, 8. 0 prior to 8. 0. 23, 8. 2 prior to 8. 2.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-8336) is a use-after-free issue (CWE-416) in MongoDB Server's handling of certain server-side JavaScript execution paths. Specifically, after invoking the internal function $_internalJsEmit or the mapreduce map function in a certain manner, subsequent use of server-side JavaScript features like $where, $function, or the mapreduce reduce stage can cause the mongod process to crash. The flaw requires authenticated access and affects multiple MongoDB Server versions before the specified patched releases. The CVSS 4.0 base score is 7.7, indicating a high severity due to network attack vector, partial complexity, and significant impact on confidentiality, integrity, and availability.
Potential Impact
An authenticated user can exploit this vulnerability to cause a denial-of-service by crashing the mongod process, resulting in service disruption. There is no indication of remote code execution or data corruption beyond the DoS impact. The vulnerability affects multiple recent MongoDB Server versions prior to the fixed releases.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The affected versions are listed, but no explicit patch or official fix information is provided in the available data. Until a patch is confirmed, avoid using the $_internalJsEmit function directly and exercise caution with server-side JavaScript features such as $where, $function, and mapreduce commands in environments where authenticated users have access. Monitor MongoDB's official advisories for updates and apply patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-05-11T15:37:59.492Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a03c40bcbff5d8610358781
Added to database: 5/13/2026, 12:21:31 AM
Last enriched: 5/13/2026, 12:36:25 AM
Last updated: 5/13/2026, 1:22:17 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.