Skip to content
Heist/ feed
Back to feed
Medium

mongo-c-driver — security advisory

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

An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.

Products
mongo-c-driver
Affected versions
1.15.0-1, 1.15.1-1, 1.15.2-1, 1.16.0-1, 1.16.1-1, 1.16.1-1build1, 1.16.1-1build2, 1.16.1-1ubuntu0.1~esm1, 1.18.0-1, 1.19.1-1, 1.19.2-1, 1.20.0-1, 1.20.0-1build1, 1.20.1-1, 1.21.0-1, 1.21.0-1build1, 1.21.0-1ubuntu0.1~esm1, 1.24.3-1, 1.24.4-1, 1.25.1-1, 1.25.2-1, 1.25.4-1, 1.26.0-1, 1.26.0-1.1ubuntu1, 1.26.0-1.1ubuntu2, 1.26.0-1.1ubuntu2+esm1, 1.30.4-1ubuntu1, 2.2.0-1, 2.2.1-1, 2.2.2-1, 2.3.1-1, 2.3.2-1, 2.3.3-1build1, 2.5.0-1
Fixed versions
Not specified
CVEs
CVE-2026-84965
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:23 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-84965

core-osv · Original source

Published 3 Sept 2026, 16:18 UTC

An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.

osv:UBUNTU-CVE-2026-84965

mongo-c-driver

Fixed versions: Not specified

mongo-c-driver

Fixed versions: Not specified

mongo-c-driver

Fixed versions: Not specified

mongo-c-driver

Fixed versions: Not specified

mongo-c-driver

Fixed versions: Not specified

Complete source record
{
  "id": "b6adf13ebe9ae008681f0a629a7b7761caf7736a665e6e63d789f29ee2fe2514",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-84965",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-84965",
    "summary": "An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated party able to supply a sufficiently large JSON input to an application that links the library may cause that application to terminate unexpectedly, resulting in denial of service.",
    "evidence": "osv:UBUNTU-CVE-2026-84965",
    "products": [
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.15.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.15.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.15.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.16.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.16.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.16.1-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.16.1-1build2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.16.1-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.18.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.19.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.19.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.20.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.20.0-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.20.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.21.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.21.0-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.21.0-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.24.3-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.24.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.25.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.25.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.25.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-1.1ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-1.1ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.26.0-1.1ubuntu2+esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.3-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.5.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.30.4-1ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.2.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.2.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.2.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-84965",
      "aliases": [
        "UBUNTU-CVE-2026-84965"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1.15.0-1",
            "1.15.1-1",
            "1.15.2-1",
            "1.16.0-1",
            "1.16.1-1",
            "1.16.1-1build1",
            "1.16.1-1build2",
            "1.16.1-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84965.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbson-1.0-0",
                "binary_version": "1.16.1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "libmongoc-1.0-0",
                "binary_version": "1.16.1-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "1.18.0-1",
            "1.19.1-1",
            "1.19.2-1",
            "1.20.0-1",
            "1.20.0-1build1",
            "1.20.1-1",
            "1.21.0-1",
            "1.21.0-1build1",
            "1.21.0-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84965.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbson-1.0-0",
                "binary_version": "1.21.0-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "libmongoc-1.0-0",
                "binary_version": "1.21.0-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "1.24.3-1",
            "1.24.4-1",
            "1.25.1-1",
            "1.25.2-1",
            "1.25.4-1",
            "1.26.0-1",
            "1.26.0-1.1ubuntu1",
            "1.26.0-1.1ubuntu2",
            "1.26.0-1.1ubuntu2+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84965.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbson-1.0-0t64",
                "binary_version": "1.26.0-1.1ubuntu2+esm1"
              },
              {
                "binary_name": "libmongoc-1.0-0t64",
                "binary_version": "1.26.0-1.1ubuntu2+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.2.2-1",
            "2.3.1-1",
            "2.3.2-1",
            "2.3.3-1build1",
            "2.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84965.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbson2-2",
                "binary_version": "2.5.0-1"
              },
              {
                "binary_name": "libmongoc2-2",
                "binary_version": "2.5.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.30.4-1ubuntu1",
            "2.2.0-1",
            "2.2.1-1",
            "2.2.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84965.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libbson2-2",
                "binary_version": "2.2.2-1"
              },
              {
                "binary_name": "libmongoc2-2",
                "binary_version": "2.2.2-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:12.922804471Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-84965"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-84965",
        "https://www.cve.org/CVERecord?id=CVE-2026-84965",
        "https://jira.mongodb.org/browse/CDRIVER-6405"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-84965",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/2/score"
  },
  "source_id": "core-osv",
  "document_id": 361266,
  "published_at": "2026-09-03T16:18:00+00:00"
}