{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.11.22"
                  },
                  {
                    "fixed": "3.13.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "5a4ac737e72e18a08eca848049e3dd38571c73b4"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "3d253c524e3e4f21a11c857ab0827fe34c2ee307"
            },
            {
              "fixed": "2a81eef56c96c237e590c27f9a75e60317c9c700"
            },
            {
              "fixed": "5a4ac737e72e18a08eca848049e3dd38571c73b4"
            }
          ],
          "repo": "https://github.com/randombit/botan",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w8gj-5xrm-gvrp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-158"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118767.json"
  },
  "details": "Botan is a C++ cryptography library. From 1.11.22 until 3.13.0, Botan's Python binding converted Python strings containing U+0000 to const char* values without consistently rejecting the embedded NUL, causing bcrypt and check_bcrypt to process only the prefix before the NUL. Applications could validate a longer password but hash a shorter effective value, allowing application password-policy bypass; scrypt and argon2 are unaffected. This issue is fixed in version 3.13.0.",
  "id": "CVE-2026-118767",
  "modified": "2026-11-01T02:30:29.100248450Z",
  "published": "2026-10-29T17:17:24.323Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118767.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118767"
    },
    {
      "type": "FIX",
      "url": "https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4"
    },
    {
      "type": "FIX",
      "url": "https://github.com/randombit/botan/pull/5814"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs"
}