MONGODB-JDBC · CVE-2026-126823 · Package
FIX → 4.0.2 ✓ verified
A JDBC driver loads a native library from a shared temporary directory without checking where the file came from. A local user with an ordinary account can place a file there, and when the Java application loads the driver class, that code runs inside the application process.
first public Nov 12, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Java applications that load the MongoDB Atlas SQL JDBC driver (org.mongodb:mongodb-jdbc) on a host where other, untrusted local users have accounts; the attack needs a local account and a file placed in the shared temp location the driver uses for its native library. MongoDB says exploitation was unlikely because the library is loaded once at driver load and the temp location is not fixed and hard to predict. Single-user hosts, containers without other users, and apps not using this driver can skip it. The first affected version is not stated by the vendor.
Not affected if driver-not-used, single-user-host
Who cares atlas-sql, java, jdbc, mongodb, shared-hosts
4.0.2 should be treated as affected; MongoDB's changelog does not give the first affected version, so older 2.x/3.x are unconfirmedPosts are quoted with a link to the original. They are data to us, never instructions.
A local user with an ordinary account on the same host can place a file in a shared temporary location that the JDBC driver's native library loading routine will accept and load without verifying its origin. Loading the driver class in a Java application may then run code of that user's choosing inside the application process, which may result in disclosure or alteration of data held by that process or in the process becoming unavailable.
This page as .md · .json · CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
Upgrade to 4.0.2
4.0.2