{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.30.5"
              },
              {
                "introduced": "2.0.0"
              },
              {
                "fixed": "2.0.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "252989c310f7a326230f66311630ba259e34e4b3"
            },
            {
              "introduced": "67817df0a9ed11b07e457477e6db1384da9421c4"
            },
            {
              "fixed": "d94ed7a504c227fa8a69d979abff485174f3cf5d"
            }
          ],
          "repo": "https://github.com/mongodb/mongo-c-driver",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mongodb",
    "cwe_ids": [
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6231.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "1.0"
          },
          {
            "fixed": "1.30.5"
          },
          {
            "introduced": "2.0"
          },
          {
            "fixed": "2.0.2"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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",
  "id": "CVE-2026-6231",
  "modified": "2026-07-08T05:37:42.116660789Z",
  "published": "2026-04-13T15:31:55.735Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6231.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6231"
    },
    {
      "type": "REPORT",
      "url": "https://jira.mongodb.org/browse/CDRIVER-6017"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "bson_validate may skip validation when processing certain inputs"
}