Arbitrary class loading from BSON type names in MongoDB Java Driver
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The MongoDB Java Driver from 3.5.0 before 5.16.0 is affected. A deserialization flaw in its BSON object mapping (CWE-470) lets a type name stored in a document select which Java class the application loads and builds. An attacker with low privileges who can insert a document into a collection the application later reads can cause a class on the classpath to be loaded and populated, which may change application state or cause failures when those records are read.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
A deserialization flaw in the BSON object-mapping component of the MongoDB Java Driver allows a type-name value carried inside a document to select which Java class the embedding application loads and builds. A party able to place a document into a collection the application later reads can cause the application to load, initialize and populate an arbitrary class that is present on its classpath, with field values taken from the same document. This may result in unintended changes to application state and in failures when the affected records are read.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade the MongoDB Java Driver to version 5.16.0 or later, the version that fixes this flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Jave Driver (MongoDB) Fixed in 5.16.0
Timeline
- 2026-12-03 Threatist record created from CVE-2026-141347
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
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences