{"id":"CVE-2026-39892","published":"2026-04-08T20:49:41Z","modified":"2026-11-04T03:18:10Z","title":"cryptography has a buffer overflow if non-contiguous buffers were passed to APIs","vendor":"pyca","product":"cryptography","tier":"tail","description":{"text":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to before 46.0.7, if a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. This vulnerability is fixed in 46.0.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.53231,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"},{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"references":[{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pyca/cryptography/commit/622d672e429a7cff836a23c5903683dbec1901f5","tags":["x_refsource_MISC"]},{"url":"https://github.com/pyca/cryptography/commit/c09d38ae52de7d95fe683b7a7c496f5751616f27","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/08/12","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-39892","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456735","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39892.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24761","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24762","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30089","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30088","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:20338","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43855","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43854","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43851","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43670","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43853","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43651","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46956","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7295","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42644","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22840","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22629","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21017","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24853","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22465","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23361","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24483","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.65},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"pyca","affectedVersions":[{"vendor":"pyca","product":"cryptography","versions":[">= 45.0.0, < 46.0.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-09T19:41:57.662246Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"cryptography","vulnerableRanges":[">=45.0.0, <46.0.7"],"patched":["46.0.7"],"from":["GHSA-p423-j2cm-9vmq","PYSEC-2026-36"],"provenance":"source"}],"summary":{"text":"The pyca cryptography package, a Python library for cryptographic primitives and recipes, has a flaw in versions from 45.0.0 before 46.0.7 where passing a non-contiguous buffer to APIs that accept Python buffers, such as Hash.update(), can cause a buffer overflow. An attacker can exploit this over the network without authentication or user interaction, with low complexity, causing a low-impact availability effect on the affected system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:12Z"},"euvd":{"id":"EUVD-2026-20640","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-12797","published":"2025-02-11","fixed":"44.0.1","kev":false},{"cve":"CVE-2026-26007","published":"2026-02-10","fixed":"46.0.5","kev":false},{"cve":"CVE-2026-34073","published":"2026-03-31","fixed":"46.0.6","kev":false,"link":{"from":"CVE-2026-34073","to":"CVE-2026-39892","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cryptography","fromFixed":"46.0.6","toFixed":"46.0.7","daysApart":8}]}},{"cve":"CVE-2026-39892","published":"2026-04-08","fixed":"46.0.7","kev":false},{"cve":"CVE-2026-69248","published":"2026-08-03","fixed":"49.0.0","kev":false},{"cve":"CVE-2026-69249","published":"2026-08-03","fixed":"49.0.0","kev":false},{"cve":"CVE-2026-69247","published":"2026-08-03","fixed":"50.0.0","kev":false}],"package":"PyPI:cryptography"}}