CVE-2026-74871: openssl-encrypt sequential XOR cancels the last key-derivation stage
Affects openssl_encryptSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.4.8 when convenient.
Data as of 3 Dec 2026, 23:19 UTC
- Patch
- Available – fixed in 1.4.8
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade openssl_encrypt to 1.4.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIopenssl_encrypt | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in openssl-encrypt version 1.4.8 and later, which introduces format version 13 that corrects the key derivation process. Users should re-encrypt any files created with the vulnerable configuration (sequential XOR mode, format_version 8 or 10, single KDF, no prior hashing) using a patched version to upgrade to the secure format. Files encrypted with default configurations or other modes are not affected and require no action. Identification of affected files can be done using 'openssl-encrypt info -i <file>.enc' to check for xor_mode sequential with format_version 8 or 10 and the vulnerable KDF setup.
Description
CVE-2026-74871 is a vulnerability in the openssl-encrypt tool's sequential XOR composition mode (format versions 8 and 10) where the last stage of key derivation cancels out. This flaw only affects files encrypted with a non-default configuration using a single key derivation function (KDF) and no prior hashing stage, causing the key derivation to collapse to a simple SHA256(password‖salt). Default configurations with multiple chained KDFs and hashing are not affected. The vulnerability reduces the computational cost of offline password guessing attacks for affected files. It was fixed in version 1.4.8 by introducing format version 13, which removes the redundant final append and ensures all stages contribute to the key.
References
- github.com/jahlives/openssl_encrypt/security/advisories/GHSA-vxf9-vwp6-2w43 (opens in a new tab)
- github.com/jahlives/openssl_encrypt/commit/1c122790d6d914909514dbe026d051bc06c50844 (opens in a new tab)
- github.com/jahlives/openssl_encrypt/commit/a7d2c9054f5b4374561c82665b24adfe3fad360c (opens in a new tab)
- github.com/jahlives/openssl_encrypt/commit/e1b6731fae6ed9d6b17ecdc3b72edc3b364ee339 (opens in a new tab)
- github.com/jahlives/openssl_encrypt (opens in a new tab)
- github.com/jahlives/openssl_encrypt/releases/tag/v1.4.8 (opens in a new tab)
- github.com/pypa/advisory-database/blob/main/vulns/openssl-encrypt/PYSEC-2026-3976.yaml (opens in a new tab)
- nvd.nist.gov/vuln/detail/cve-2026-74871 (opens in a new tab)
- vulncheck.com/advisories/openssl-encrypt-before-kdf-bypass-via-sequential-xor (opens in a new tab)