CVE-2026-39892 cryptography has a buffer overflow if non-contiguous buffers were passed to APIs

Medium 6.9 Published Updated

Attackers can trigger buffer overflows in the Python cryptography library by passing non-contiguous buffers to APIs, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-39892?

CVE-2026-39892 is a medium-severity memory corruption vulnerability in pyca cryptography, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-131, CWE-119

Which versions are affected by CVE-2026-39892?

3 open source packages ship an affected version, including cryptography. It affects 1 product.

PackageAffectedFixed in
cryptography PyPIFrom 45.0.046.0.7
cryptography PyPIFrom 45.0.046.0.7
cryptography PyPIFrom 45.0.046.0.7
Linux distribution packages (1)
python-cryptography openSUSE:TumbleweedAll versions46.0.7-1.1

Products include Cryptography.io Cryptography.

How do I fix CVE-2026-39892?

Upgrade cryptography to 46.0.7 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-39892 being exploited?

There is no known exploitation of CVE-2026-39892 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-39892, BELL-CVE-2026-39892, CLEANSTART-2026-HA56208, CLEANSTART-2026-TY96751, CLSA-2026-1778028237, DEBIAN-CVE-2026-39892 and 18 more.

Is CVE-2026-39892 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free