CVE-2026-141347: Remote code execution via unvalidated discriminator-driven class loading in POJO decoding

Published Dec 3, 2026
·
Updated

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.

Affected Software

1 affected component
MongoDB MongoDB Java Driver

Event History

Dec 3, 2026
CVE Published
via MITRE·09:26 PM
Data Sourced
via MITRE·09:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness
Event
via NVD·10:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using the MongoDB Java Driver's BSON object-mapping component are exposed if they read documents from a collection where another party can place or modify records. The risk depends on attacker-controlled documents later being decoded by the application.

2

What does an attacker need to exploit it?

An attacker needs the ability to place a document into a collection that the application later reads. They can supply a type-name value that influences class selection, but exploitation is limited to classes already present on the application's classpath.

3

Does successful exploitation require user interaction or prior application privileges?

No user interaction is required. The provided severity vector indicates low attack complexity and requires low privileges, consistent with an attacker who can write a record that the application subsequently processes.

4

What can happen when a malicious document is read?

The application may load, initialize, and populate an arbitrary class from its classpath using values in the document. This can cause unintended application-state changes and failures while reading affected records.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203