Original description
A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed. This may result in disclosure of information from the mongod process memory or a denial of service through a server crash.
Affected software
- MongoDB ≥ 6.0.0 < 6.0.29≥ 4.4.0 < 4.4.31≥ 5.0.0 < 5.0.34≥ 8.0.0 < 8.0.26≥ 8.2.0 < 8.2.11≥ 8.3.0 < 8.3.4 Fixed in: 6.0.29, 4.4.31, 5.0.34, 8.0.26 exact match
Details
- Published
- 2026-06-12
- Last modified
- 2026-06-13
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- CWE
- CWE-787
- EPSS (30-day exploit probability)
- 0.43% (percentile 38)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.