CVE-2026-8336 PUBLISHED

Post-authentication use-after-free error in $_internalJsEmit and mapreduce commands

Assigner: mongodb
Reserved: 11.05.2026 Published: 13.05.2026 Updated: 13.05.2026

After invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce command’s map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapreduce reduce stage, etc.) is used also in a specific way, resulting in a post-authentication denial-of-service.

This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:A/V:D/RE:M/U:Red
CVSS Score: 7.7

Product Status

Vendor MongoDB, Inc.
Product MongoDB Server
Versions Default: unaffected
  • affected from 7.0 to 7.0.34 (excl.)
  • affected from 8.0 to 8.0.23 (excl.)
  • affected from 8.2 to 8.2.9 (excl.)
  • affected from 8.3 to 8.3.2 (excl.)

References

Problem Types

  • CWE-416: Use After Free CWE