KeygraphLabs · CVE MCP

CVE-2016-9243 · redhat

CVE-2016-9243

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

Published 2017-03-27, last changed 2026-06-17.

CVSS
7.5
high, from NVD
EPSS
3.46%
percentile 89.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: cryptography 1.5.3 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in pyca/cryptography by b924696b2e. Functions changed by the fix: _expand. Regression tests: tests/hazmat/primitives/test_hkdf.py. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2017-03-27Published
2017-03-27Package advisory PYSEC-2017-8
2022-05-17Package advisory GHSA-q3cj-2r34-2cwc
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.46%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-q3cj-2r34-2cwccryptography (PyPI)1.5.3
PYSEC-2017-8cryptography (PyPI)1.5.3

Also known as: GHSA-q3cj-2r34-2cwc, PYSEC-2017-8

Related

CVEPublishedCVSSSummary
CVE-2026-692492026-08-038.7python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
CVE-2026-692482026-08-036.9python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
CVE-2026-692472026-08-038.2cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
CVE-2026-398922026-04-089.8cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
CVE-2026-340732026-03-315.3cryptography has incomplete DNS name constraint enforcement on peer names
CVE-2026-260072026-02-106.5cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
CVE-2024-127972025-02-117.4RFC7250 handshakes with unauthenticated servers don't abort as expected
CVE-2024-261302024-02-217.5cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash over

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-9243, or call /api/v1/vulnerabilities/CVE-2016-9243. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org