{"schema_version":"1.9.0","id":"GHSA-p423-j2cm-9vmq","published":"2026-04-08T19:23:08Z","modified":"2026-09-10T03:50:44.766981051Z","aliases":["CVE-2026-39892","PYSEC-2026-36"],"summary":"Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs","details":"If a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. `Hash.update()`), this could lead to buffer overflows. For example:\n\n```python\nh = Hash(SHA256())\nb.update(buf[::-1])\n```\n\nwould read past the end of the buffer on Python >3.11","affected":[{"package":{"name":"cryptography","ecosystem":"PyPI","purl":"pkg:pypi/cryptography"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"45.0.0"},{"fixed":"46.0.7"}]}],"versions":["45.0.0","45.0.1","45.0.2","45.0.3","45.0.4","45.0.5","45.0.6","45.0.7","46.0.0","46.0.1","46.0.2","46.0.3","46.0.4","46.0.5","46.0.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-p423-j2cm-9vmq/GHSA-p423-j2cm-9vmq.json"}}],"references":[{"type":"WEB","url":"https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39892"},{"type":"PACKAGE","url":"https://github.com/pyca/cryptography"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/04/08/12"}],"database_specific":{"cwe_ids":["CWE-119"],"github_reviewed":true,"github_reviewed_at":"2026-04-08T19:23:08Z","nvd_published_at":"2026-04-08T21:17:01Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}