Incorrect Failure Handling in OpenSSL RSA KEM RSASVE Encapsulation
CVE-2026-31790 is an OpenSSL vulnerability in RSA KEM RSASVE encapsulation. Applications using EVP_PKEY_encapsulate() with RSA/RSASVE can disclose stale or uninitialized contents of a caller-provided ciphertext buffer to a malicious peer when encapsulation is attempted with an attacker-supplied invalid RSA public key that has not been validated first. The root cause is incorrect failure handling around RSA_public_encrypt(): the affected code checks only whether the return value is non-zero, even though RSA_public_encrypt() returns the number of bytes written on success and -1 on error. Because -1 is non-zero, an encryption failure can be misinterpreted as success, output lengths can be set, and the caller may transmit buffer contents as though a valid KEM ciphertext had been produced. The issue affects OpenSSL 3.0, 3.3, 3.4, 3.5, and 3.6, and the corresponding FIPS modules in 3.0, 3.1, 3.3, 3.4, 3.5, and 3.6 are also affected.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A specific vulnerability in OpenSSL addressed in Alpine Linux stable releases 3.20.10, 3.21.7, 3.22.4, and 3.23.4.
Incorrect failure handling in RSA KEM RSASVE encapsulation in OpenSSL.
Incorrect failure handling in RSA KEM RSASVE encapsulation that could leave encapsulation in an inconsistent state.
Incorrect failure handling in RSA KEM RSASVE encapsulation in OpenSSL.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.