openssl-encrypt sequential XOR cancels the last key-derivation stage
CVE-2026-74871
Summary Files encrypted in sequential XOR composition mode (--xor / --use-xor-composition, on-disk formatversion 8 or 10) derive a key in which the last stage cancels out. The weakness is only security-relevant for a specific, non-default configuration (see Exploitability below). In that case the key derivation collapses to a single cheap SHA256(password ‖ salt), completely bypassing the configured memory-hard KDF (e.g. Argon2) and allowing offline password guessing at plain-SHA256 speed. Exploitability — preconditions (important) The flaw cancels only the last stage of the derivation. It is exploitable only when BOTH of the following hold: 1. Exactly one KDF is configured (e.g. Argon2 alone), and 2. No prior hashing stage precedes it. Only then does the cancellation remove the sole expensive stage, leaving just the initial SHA256(pw‖salt). Neither condition is the default — so default-configured files are NOT exploitable: The default uses 3 chained KDFs, and chained hash stages are also on by default. With multiple stages the cancellation drops only the last one; the surviving earlier KDF/hash snapshots remain XOR'd into the key, so the derivation stays memory-hard. The work…
Assessment
- CVSS
- 6.2 (v3.1)
- Severity
- Medium
- EPSS
- 0.00081% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 3 December 2026
- Last updated
- 3 December 2026
- Affected
- openssl_encrypt
- Weakness
- CWE-916
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
At the source
References
- https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-vxf9-vwp6-2w43
- https://github.com/jahlives/openssl_encrypt/commit/1c122790d6d914909514dbe026d051bc06c50844
- https://github.com/jahlives/openssl_encrypt/commit/a7d2c9054f5b4374561c82665b24adfe3fad360c
- https://github.com/jahlives/openssl_encrypt/commit/e1b6731fae6ed9d6b17ecdc3b72edc3b364ee339
- https://github.com/jahlives/openssl_encrypt/releases/tag/v1.4.8
- https://github.com/pypa/advisory-database/blob/main/vulns/openssl-encrypt/PYSEC-2026-3976.yaml
- https://nvd.nist.gov/vuln/detail/cve-2026-74871
- https://www.vulncheck.com/advisories/openssl-encrypt-before-kdf-bypass-via-sequential-xor
- https://github.com/advisories/GHSA-vxf9-vwp6-2w43
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-74871