Skip to main content
VulnerabilityPublished

CVE-2026-118581: MongoDB Java Driver · Improper Neutralization of Special Elements in Data Query Logic

Affects MongoDB Java DriverSource CVE Database V5

0

Not known to be exploited · CVSS 6.9 Medium : upgrade to 5.14.0 when convenient.

Data as of 28 Oct 2026, 17:22 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 5.14.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade Java Driver and org.mongodb/mongo-java-driver to 5.14.0.

Affected software

ProductAffectedFixed in
MongoDBJava DriverAffected
  • >=5.8.0 <5.14.0
Fixed in
  • 5.14.0
Mavenorg.mongodb/mongo-java-driverpkg:maven/org.mongodb/mongo-java-driverOther threatsAffected
  • >=5.8.0 <5.14.0
Fixed in
  • 5.14.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade the MongoDB Java Driver to version 5.14.0 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Applications should avoid wrapping untrusted raw bytes in BSON documents until patched.

Description

CVE-2026-118581 is a vulnerability in the BSON encoding component of the MongoDB Java Driver versions 5.8.0 up to but not including 5.14.0. It allows an attacker who can supply raw bytes to the application to craft a structurally inconsistent BSON document that causes the database to interpret extra attacker-controlled fields in a command. This can result in unintended modification of the executed database command, potentially altering data read or written under the application's credentials. No authentication or user interaction is required beyond influencing the raw bytes.

References

Community reviews

Loading reviews…