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.
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-27 | Published |
| 2017-03-27 | Package advisory PYSEC-2017-8 |
| 2022-05-17 | Package advisory GHSA-q3cj-2r34-2cwc |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.46% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-q3cj-2r34-2cwc | cryptography (PyPI) | 1.5.3 |
| PYSEC-2017-8 | cryptography (PyPI) | 1.5.3 |
Also known as: GHSA-q3cj-2r34-2cwc, PYSEC-2017-8
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-69249 | 2026-08-03 | 8.7 | python-cryptography: Duplicate self-signed intermediates can cause exponential path-building |
| CVE-2026-69248 | 2026-08-03 | 6.9 | python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees |
| CVE-2026-69247 | 2026-08-03 | 8.2 | cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing |
| CVE-2026-39892 | 2026-04-08 | 9.8 | cryptography has a buffer overflow if non-contiguous buffers were passed to APIs |
| CVE-2026-34073 | 2026-03-31 | 5.3 | cryptography has incomplete DNS name constraint enforcement on peer names |
| CVE-2026-26007 | 2026-02-10 | 6.5 | cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves |
| CVE-2024-12797 | 2025-02-11 | 7.4 | RFC7250 handshakes with unauthenticated servers don't abort as expected |
| CVE-2024-26130 | 2024-02-21 | 7.5 | cryptography 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.