# CVE-2026-118581: NoSQL injection via mismatched BSON size prefix in raw document splice to the wire protocol

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-28 · Modified: 2026-11-05
- Aliases: DEBIAN-CVE-2026-118581, CGA-rm5r-vh58-rhg6, CGA-v8q6-8f4p-wj34
- Record: https://cvemate.com/vulnerability/CVE-2026-118581 · JSON: https://cvemate.com/vulnerability/CVE-2026-118581/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.261%, percentile 18.979%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard flyway (Chainguard): \< 13.13.0-r3
- wolfi flyway (Wolfi): \< 13.13.0-r3
- debian mongo-java-driver (Debian): All versions (No fix recorded)
- mongodb java driver: ≥ 5.8.0, \< 5.14.0

## References

- <https://github.com/mongodb/mongo-java-driver/releases/tag/r5.14.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-118581>

---

Data as of 2026-12-05T04:25:02.951Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
