Skip to content
Heist/ feed
Back to feed
Medium

mongo-cxx-driver — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-84970

A numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can cause the library to read memory beyond the supplied buffer and return it to the caller, to silently accept only part of the input as a complete document, or to terminate the process. No MongoDB server, credentials, or non-default configuration is required; the effect is confined to the process that uses the library.

Products
mongo-cxx-driver
Affected versions
4.4.0-1, 4.5.0-1
Fixed versions
Not specified
CVEs
CVE-2026-84970
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:23 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-84970

core-osv · Original source

Published 3 Sept 2026, 15:17 UTC

A numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can cause the library to read memory beyond the supplied buffer and return it to the caller, to silently accept only part of the input as a complete document, or to terminate the process. No MongoDB server, credentials, or non-default configuration is required; the effect is confined to the process that uses the library.

osv:UBUNTU-CVE-2026-84970

mongo-cxx-driver

Fixed versions: Not specified

Complete source record
{
  "id": "ef0bb90825f01dc6b0d5b4002330cf0e08b91803bcdcf85f404149e41ea225e6",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-84970",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-84970",
    "summary": "A numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can cause the library to read memory beyond the supplied buffer and return it to the caller, to silently accept only part of the input as a complete document, or to terminate the process. No MongoDB server, credentials, or non-default configuration is required; the effect is confined to the process that uses the library.",
    "evidence": "osv:UBUNTU-CVE-2026-84970",
    "products": [
      {
        "name": {
          "value": "mongo-cxx-driver",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.5.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-84970",
      "aliases": [
        "UBUNTU-CVE-2026-84970"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-cxx-driver",
            "purl": "pkg:deb/ubuntu/mongo-cxx-driver?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.4.0-1",
            "4.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84970.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbsoncxx1-1",
                "binary_version": "4.5.0-1"
              },
              {
                "binary_name": "libmongocxx1-1",
                "binary_version": "4.5.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:12.797461758Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-84970"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-84970",
        "https://www.cve.org/CVERecord?id=CVE-2026-84970",
        "https://jira.mongodb.org/browse/CXX-3547"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-84970",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361254,
  "published_at": "2026-09-03T15:17:00+00:00"
}