Skip to content
Heist/ feed
Back to feed
HighFix available

mongo-c-driver — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-6231

The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1

Products
mongo-c-driver
Affected versions
1.23.1-1, 1.23.1-1+deb12u1, 1.23.1-1+deb12u2, 1.30.4-1, 1.30.4-1+deb13u1, 2.0.2-1
Fixed versions
1.23.1-1+deb12u3, 1.30.4-1+deb13u2, 2.1.0-1
CVEs
CVE-2026-6231
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:39 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-6231

core-osv · Original source

Published 13 Apr 2026, 16:16 UTC

The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1

osv:DEBIAN-CVE-2026-6231

mongo-c-driver

Fixed versions: 1.23.1-1+deb12u3

mongo-c-driver

Fixed versions: 1.30.4-1+deb13u2

mongo-c-driver

Fixed versions: 2.1.0-1

Complete source record
{
  "id": "51012e63a215d0391aa949d975d1a1a16a7cda141c5f7bea5a02d72187c3e8bd",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-6231",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-6231",
    "summary": "The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1",
    "evidence": "osv:DEBIAN-CVE-2026-6231",
    "products": [
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.23.1-1+deb12u3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.23.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.23.1-1+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.23.1-1+deb12u2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.30.4-1+deb13u2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.30.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.30.4-1+deb13u1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-c-driver",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.30.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.0.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-6231",
      "aliases": [
        "DEBIAN-CVE-2026-6231"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.23.1-1+deb12u3"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.23.1-1",
            "1.23.1-1+deb12u1",
            "1.23.1-1+deb12u2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6231.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.30.4-1+deb13u2"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "1.30.4-1",
            "1.30.4-1+deb13u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6231.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-c-driver",
            "purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "1.30.4-1",
            "2.0.2-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6231.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:28.082635840Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-6231"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-6231"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-6231",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460954,
  "published_at": "2026-04-13T16:16:36.57+00:00"
}