Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. cryptography
  4. ›
  5. CVE-2026-39892

CVE-2026-39892: Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs

April 8, 2026 (updated April 9, 2026)

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:

h = Hash(SHA256())
b.update(buf[::-1])

would read past the end of the buffer on Python >3.11

References

  • github.com/advisories/GHSA-p423-j2cm-9vmq
  • github.com/pyca/cryptography
  • github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq
  • nvd.nist.gov/vuln/detail/CVE-2026-39892

Code Behaviors & Features

Detect and mitigate CVE-2026-39892 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 45.0.0 before 46.0.7

Fixed versions

  • 46.0.7

Solution

Upgrade to version 46.0.7 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

pypi/cryptography/CVE-2026-39892.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:30 +0000.