CVE-2016-9243
High · 7.5CVSS
7.5
EPSS
3.5%
Published
Mar 27, 2017
CISA due date
—
Cloudanix analysis
A bug in how certain software creates secret keys could let attackers disable security checks that rely on those keys.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
HKDF key derivation returns an empty byte string when requested output length is shorter than the underlying digest size, silently producing a zero-length key instead of a usable derived secret.
Why it matters to the business
Organizations relying on the affected scanner component risk exposure of container image vulnerabilities or secrets because cryptographic key material may become empty and ineffective, undermining scanning integrity and downstream trust decisions.
How an attack unfolds
An attacker supplies inputs that trigger HKDF with an output length below digest_size; the resulting empty key is used for subsequent cryptographic operations, allowing the attacker to bypass integrity or confidentiality protections that depend on that key.
How to fix it
Upgrade harbor-scanner-trivy-fips (Chainguard) to version 0.31.3-r2 or later; verify the installed package reports the fixed version and restart affected services.
How to confirm the fix worked
Confirm the deployed package version matches or exceeds 0.31.3-r2; run unit tests that exercise HKDF with lengths below digest_size and assert non-empty output; review dependency manifests for any remaining older cryptography versions.
Typical attack path
- Identify code paths or configurations that invoke HKDF with a length parameter smaller than the algorithm digest size
- Trigger the vulnerable HKDF call to obtain an empty derived key
- Use the empty key in encryption, signing, or verification routines to defeat security controls
- Proceed with further attacks such as reading protected data or injecting malicious content that would normally be rejected
How to detect it
Review application logs for HKDF calls returning empty results or subsequent crypto operations using zero-length keys; inspect dependency manifests and container images for pre-0.31.3-r2 versions of the scanner package.
What your security team should do
- Immediately schedule upgrade of harbor-scanner-trivy-fips to 0.31.3-r2 across all environments
- Audit any custom code or configurations that directly call HKDF and enforce length >= digest_size
- Add dependency scanning to CI pipelines to prevent reintroduction of vulnerable cryptography versions
- Monitor for any scanning failures or anomalous empty-key errors after remediation
The record
HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | cryptography | 0 | 1.5.3 |
| PyPI | cryptography | 0 | b924696b2e8731f39696584d12cceeb3aeb2d874 |
| Debian:11 | python-cryptography | 0 | 1.5.3-1 |
| Debian:12 | python-cryptography | 0 | 1.5.3-1 |
| Debian:13 | python-cryptography | 0 | 1.5.3-1 |
| Debian:14 | python-cryptography | 0 | 1.5.3-1 |
| Mageia:5 | python-cryptography | 0 | 1.0.2-1.1.mga5 |
| Ubuntu:16.04:LTS | python-cryptography | 0 | 1.2.3-1ubuntu0.1 |
Related vulnerabilities
- CVE-2026-26007 cryptography is a package designed to expose cryptographic primitives and recipes to… Also affects cryptography
- CVE-2024-12797 Issue summary: Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a server may… Also affects cryptography
- CVE-2023-50782 A flaw was found in the python-cryptography package. Also affects cryptography
- CVE-2024-0727 Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL to crash… Also affects cryptography