CVE catalog

CVE-2026-106431

An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.10% · Oct 22, 2026

An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmongo-c-driversid2.5.7-1fixed
Debianmongo-c-driverforky2.5.6-1fixed
Debianmongo-c-drivertrixie1.30.4-1+deb13u3vulnerable
Debianmongo-c-driverbookworm1.23.1-1+deb12u3vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmongo-c-driversourcesid2.5.6-1not yet assignedNot reportedNot reported
Debianmongo-c-driversourceforky2.5.6-1not yet assignedNot reportedNot reported
Debianmongo-c-driversourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianmongo-c-driversourcebookworm(unfixed)not yet assignedNot reportedNot reported

Notes

[trixie] mongo-c-driver: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libbson-1.0-0]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

  • [libbson-dev]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

  • [libbson-doc]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · all · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · all · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

  • [libmongoc-1.0-0]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

  • [libmongoc-dev]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · amd64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · arm64 · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

  • [libmongoc-doc]Affected

    Source package: [mongo-c-driver]

    Details (2)
    • 1.23.1-1+deb12u3 · all · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

    • 1.23.1-1+deb12u3 · all · bookworm

      Affected

      nvd · mongo-c-driver · debian · bookworm

Observed:

References