{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*",
            "extracted_events": [
              {
                "introduced": "0.9.0"
              },
              {
                "fixed": "0.10.78"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "a0b56c437803a08413755928040a0970a93a7b83"
            },
            {
              "fixed": "a6debf535674c9a073f455158743e6ba094cf1b4"
            }
          ],
          "repo": "https://github.com/rust-openssl/rust-openssl",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xmgf-hq76-4vx2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-125",
      "CWE-1284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41677.json"
  },
  "details": "rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.0 to before 0.10.78, the *_from_pem_callback APIs did not validate the length returned by the user's callback. A password callback that returns a value larger than the buffer it was given can cause some versions of OpenSSL to over-read this buffer. OpenSSL 3.x is not affected by this. This vulnerability is fixed in 0.10.78.",
  "id": "CVE-2026-41677",
  "modified": "2026-07-15T01:49:11.328882975Z",
  "published": "2026-04-24T17:17:17.849Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41677.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xmgf-hq76-4vx2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41677"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:U",
      "type": "CVSS_V4"
    }
  ],
  "summary": "rust-openssl: Out-of-bounds read in PEM password callback when user callback returns an oversized length"
}