CVE-2016-9243 Improper input validation in cryptography

High 7.5 Published Updated

The HKDF function in the cryptography library returns an empty byte string when the requested length is smaller than the digest size, potentially causing unexpected behavior in dependent applications.

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

What is CVE-2016-9243?

CVE-2016-9243 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 27 Mar 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.

Which versions are affected by CVE-2016-9243?

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

PackageAffectedFixed in
cryptography PyPIAll versions1.5.3
cryptography PyPIAll versions1.5.3
cryptography PyPIAll versions1.5.3

Products include Canonical Ubuntu Linux, Cryptography.io Cryptography, Fedoraproject Fedora.

How do I fix CVE-2016-9243?

Upgrade cryptography to 1.5.3 or later.

Is CVE-2016-9243 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-9243, GHSA-q3cj-2r34-2cwc, MGASA-2016-0377, PYSEC-2017-8, UBUNTU-CVE-2016-9243, USN-3138-1.

Is CVE-2016-9243 in your software?

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

Check your SBOMs for free