Patch Ticker
EnglishEN
Elevated

MongoDB Java Driver POJO decoding loads arbitrary classes

CVE-2026-141347

Fake records in a database can hack the program reading them.

CVE
CVE-2026-141347 (opens in a new tab)
Score
CVSS 7.1
First seen

Mitigation

Update MongoDB Java Driver to 5.16.0 or later. Versions 3.5.0 through before 5.16.0 are affected.

Summary

In the MongoDB Java Driver's BSON object mapping, a type name inside a document chooses which Java class gets loaded. An attacker who can insert a document into a collection the application later reads can load and populate any class on the classpath. Versions 3.5.0 through before 5.16.0 are affected.

Affected when

  • Application reads POJO-mapped collections an attacker can insert documents into
  • A usable class is present on the classpath

Incidents by product: Jave Driver · MongoDB Java Driver

Read the write-up · jira.mongodb.org (opens in a new tab)