CVE-2026-81702 Key Substitution in openssl_encrypt
The openssl_encrypt library before 1.4.9 is vulnerable to key substitution attacks due to improper fingerprint validation when loading identities from local identity.json files.
CVE search metadata
CVE search record: CVE-2026-81702. Severity: critical. CVSS: 9.8. KEV: no. Product: openssl_encrypt (< 1.4.9), openssl-encrypt (<= 1.4.8), openssl-encrypt (< 1.4.9). Brief: CVE-2026-81702 Key Substitution in openssl_encrypt. Brief link: https://feed.craftedsignal.io/briefs/2026-08-openssl-encrypt-identity-vuln/
What's new
- 1. added coverage for openssl_encrypt (< 1.4.9) Aug 27, 21:10 via nvd
- 2. added coverage for openssl_encrypt (< 1.4.9) Aug 27, 21:09 via nvd
- 3. added coverage for openssl_encrypt (< 1.4.9) Aug 27, 19:13 via nvd
- 4. added coverage for openssl-encrypt (< 1.4.9) Aug 27, 19:13 via nvd
- 5. added coverage for openssl_encrypt (< 1.4.9) Aug 27, 19:11 via nvd
The openssl_encrypt library, specifically versions prior to 1.4.9, contains a critical vulnerability (CVE-2026-81702) in its identity management mechanism. When the library loads identity configurations from the 'identity.json' file, it fails to perform necessary re-derivation and validation of identity fingerprints. This design flaw allows an attacker with local file write access to substitute legitimate public keys with attacker-controlled keys within the identity store. Because the fingerprint validation is skipped or improperly performed, the library continues to associate the manipulated identity store with the original, expected fingerprint. This enables silent key substitution where systems perform encryption using attacker-provided keys while signature verification routines falsely report successful validation, creating significant risks for data interception, spoofing, and man-in-the-middle scenarios within applications relying on this library.
Impact
Successful exploitation allows for the complete bypass of cryptographic identity verification. An attacker can intercept and decrypt sensitive communications or spoof legitimate entities by presenting a substituted public key that appears valid to the affected software. This poses a high risk of data breach and loss of integrity for any infrastructure or application utilizing openssl_encrypt for key-based authentication or encryption.
Recommendation
- Upgrade openssl_encrypt to version 1.4.9 or higher across all affected applications immediately.
- Audit file system permissions for 'identity.json' files to ensure they are write-protected and accessible only by the service process owner.
- Scan environments for the presence of the 'identity.json' file to identify software components that rely on the vulnerable library implementation.
Immediate actions
Upgrade openssl_encrypt to 1.4.9 or higher.
Mitigations
Restrict write access to identity.json files.
CVE-2026-81702