SecurityContext

CVE-2026-118581: MongoDB Java Driver - NoSQL Injection

  • Cve: CVE-2026-118581
  • Name: MongoDB Java Driver - NoSQL Injection
  • Description: A BSON encoding component of the MongoDB Java Driver does not verify that an externally supplied raw document's self-declared length agrees with the extent of the byte range it is given before that range is copied into an outgoing database command. An application that wraps untrusted raw bytes in such a document and uses it as part of a command can therefore emit a structurally inconsistent message, causing the database to interpret attacker-supplied trailing content as additional fields of the surrounding command. No authentication to the driver or database is required beyond the ability to influence those bytes through the victim application, and no user interaction is needed. The result is unintended modification of the command actually executed, which can alter the data read or written under the application's credentials.
  • Impact: Attackers can modify database commands to alter data read or written under application credentials.
  • Remediation: Update to the latest MongoDB Java Driver version.
  • Vulnerability type: nosql_injection
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00192
  • Epss percentile: 0.08703
  • Assignee: [email protected]
  • Published at: 2026-10-28T17:18:26Z
  • Age in days: 27
  • Modified at: 2026-11-05T17:17:53Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-118581
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-943Improper Neutralization of Special Elements in Data Query Logic

References

UrlSourceTags
https://github.com/mongodb/mongo-java-driver/releases/tag/r5.14.0nvd

Products

ProductAffectedPlatform boundSourcesUrl
mongodb:java_driver>= 5.8.0, < 5.14.0nocna_alias/v1/products/mongodb/java_driver

Projects

RepositoryLink kindsIndexedUrl
mongodb/mongo-java-driverreleasesyes/v1/repositories/mongodb/mongo-java-driver

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts