Remote code execution via unvalidated discriminator-driven class loading in POJO decoding
- CVE-2026-141347
- EUVD-2026-143742
Summary
CVE-2026-141347 is a deserialization flaw in the BSON object-mapping component of the MongoDB Java Driver. A type-name value stored inside a document can select which Java class the application loads and builds, with field values taken from the same document. Anyone able to insert a document into a collection the application later reads could cause it to load, initialize and populate an arbitrary class present on its classpath. The advisory says this may lead to unintended changes to application state and to failures when affected records are read. The record is rated CVSS 7.1 and is not listed in the CISA known exploited vulnerabilities catalog.
AI summary · verify against the vendor advisory
Description
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.
Text from the CVE.org record.
Recommendation
MongoDB Jave Driver
- If you run a version from 3.5.0 to before 5.16.0update to 5.16.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MongoDB Jave Driver
Affected versions Fixed in from 3.5.0 to before 5.16.0 5.16.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.