CVE-2026-141347 PUBLISHED

Remote code execution via unvalidated discriminator-driven class loading in POJO decoding

Assigner: mongodb
Reserved: 01.12.2026 Published: 03.12.2026 Updated: 03.12.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS Score: 6

Product Status

Vendor MongoDB
Product Jave Driver
Versions Default: unaffected
  • affected from 3.5.0 to 5.16.0 (excl.)

References

Problem Types

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') CWE