Use-after-free in MongoDB Server aggregation leaks process memory
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
A use-after-free weakness in MongoDB Server's server-side JavaScript support for aggregation (CWE-416) may allow a stale reference to previously freed process memory to be read and returned. An authenticated user with minimal or no assigned roles can trigger it over the network by submitting a single crafted aggregation request. Successful exploitation may return adjacent process memory contents, including data that undermines memory-layout randomization, and may in some cases affect server availability.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the CNA
A use-after-free weakness in MongoDB Server's server-side JavaScript support for aggregation may allow a stale reference to previously freed process memory to be read and returned. An authenticated user with minimal or no assigned roles can trigger this condition over the normal network protocol by submitting a single crafted aggregation request, with no additional privileges or non-default configuration. Successful triggering this issue may result in adjacent process memory contents being returned, including data that undermines memory-layout randomization, and may in some cases affect server availability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB Server | 8.3.0 to before 8.3.16; 8.0.0 to before 8.0.37; 7.0.0 to before 7.0.48 | 8.3.16, 8.0.37, 7.0.48 | Patch available | CNA |
- MongoDB Server VendorMongoDB Affected 8.3.0 to before 8.3.16; 8.0.0 to before 8.0.37; 7.0.0 to before 7.0.48 Fixed in 8.3.16, 8.0.37, 7.0.48 Patch available CNA
Remediation
Upgrade MongoDB Server to 8.3.16, 8.0.37 or 7.0.48, depending on the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · CNA MongoDB Server (MongoDB) Fixed in 8.3.16, 8.0.37, 7.0.48
Timeline
- 2026-11-10 Threatist record created from CVE-2026-120818
- 2026-11-10 Alias added: GHSA-xcr7-38c4-884c
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-13 CISA SSVC decision points changed
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-120818 · CVE Program
- CVE-2026-120818 · NVD
- FIRST EPSS
- GHSA-xcr7-38c4-884c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences