CVE-2026-126823: MongoDB JDBC driver code injection via shared temp location

CVE-2026-126823 · Severity: high · CVSS 7 · Published 2026-11-12

The MongoDB JDBC driver loads native libraries from a shared temporary location without verifying the file's source, allowing a local attacker to place a malicious library that runs arbitrary code. An attacker with a regular user account on the same system can inject code that runs inside database applications using the driver, potentially stealing or modifying data or causing the application to crash.

Vendors: MongoDB.

Quick answers

Is CVE-2026-126823 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-126823 being exploited in the wild.
How severe is CVE-2026-126823?
High severity, with a CVSS score of 7, published 12 November 2026.
Which products and versions are affected?
MongoDB JDBC driver.
Is there a fix for CVE-2026-126823?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-126823 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-126823?
Check whether you run MongoDB JDBC driver. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a local privilege escalation via unsafe native library loading in the MongoDB JDBC driver. An unprivileged local user can place a malicious file in a shared temp directory that the driver's native library loading routine accepts without origin verification. When a Java application loads the driver class, the malicious library is executed in the application's process context, granting the attacker the privileges of that process.

Affected products

  • MongoDB JDBC driver

Timeline

  • 2026-11-12: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.