Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31790

HIGH 7.5EPSS 32%

Incorrect Failure Handling in RSA KEM RSASVE Encapsulation

Mitigation

  • Upgrade OpenSSL to 3.0.20 or later.

Who should check

  • Anyone running OpenSSL >= 3.6.0, < 3.6.2; >= 3.5.0, < 3.5.6; >= 3.4.0, < 3.4.5; >= 3.3.0, < 3.3.7; >= 3.0.0, < 3.0.20

Vulnerability facts

Affected
OpenSSL >= 3.6.0, < 3.6.2; >= 3.5.0, < 3.5.6; >= 3.4.0, < 3.4.5; >= 3.3.0, < 3.3.7; >= 3.0.0, < 3.0.20
Fixed in
OpenSSL 3.6.2, OpenSSL 3.5.6, OpenSSL 3.4.5, OpenSSL 3.3.7, OpenSSL 3.0.20
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.47% chance of exploitation in 30 days (percentile 32, 2026-11-26)
CWE
CWE-754
Published
Modified

Description

Issue summary: Applications using RSASVE key encapsulation to establish a secret encryption key can send contents of an uninitialized memory buffer to a malicious peer. Impact summary: The uninitialized buffer might contain sensitive data from the previous execution of the application process which leads to sensitive data leakage to an attacker. RSA_public_encrypt() returns the number of bytes written on success and -1 on error. The affected code tests only whether the return value is non-zero. As a result, if RSA encryption fails, encapsulation can still return success to the caller, set the output lengths, and leave the caller to use the contents of the ciphertext buffer as if a valid KEM ciphertext had been produced. If applications use EVP_PKEY_encapsulate() with RSA/RSASVE on an attacker-supplied invalid RSA public key without first validating that key, then this may cause stale or uninitialized contents of the caller-provided ciphertext buffer to be disclosed to the attacker in place of the KEM ciphertext. As a workaround calling EVP_PKEY_public_check() or EVP_PKEY_public_check_quick() before EVP_PKEY_encapsulate() will mitigate the issue. The FIPS modules in 3.6, 3.5, 3.4, 3.3, 3.1 and 3.0 are affected by this issue.

Affected and fixed versions

Package / productAffectedFixedSource
OpenSSL>= 3.6.0, < 3.6.2; >= 3.5.0, < 3.5.6; >= 3.4.0, < 3.4.5; >= 3.3.0, < 3.3.7; >= 3.0.0, < 3.0.20—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31790. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31790.md
Affected: OpenSSL >= 3.6.0, < 3.6.2; >= 3.5.0, < 3.5.6; >= 3.4.0, < 3.4.5; >= 3.3.0, < 3.3.7; >= 3.0.0, < 3.0.20
Fixed in: OpenSSL 3.6.2, OpenSSL 3.5.6, OpenSSL 3.4.5, OpenSSL 3.3.7, OpenSSL 3.0.20

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-31790 being exploited?

There is no confirmed exploitation: CVE-2026-31790 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31790?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-31790?

OpenSSL >= 3.6.0, < 3.6.2; >= 3.5.0, < 3.5.6; >= 3.4.0, < 3.4.5; >= 3.3.0, < 3.3.7; >= 3.0.0, < 3.0.20.

Is there a fix for CVE-2026-31790?

Yes. Fixed in OpenSSL 3.6.2, OpenSSL 3.5.6, OpenSSL 3.4.5, OpenSSL 3.3.7, OpenSSL 3.0.20. Upgrade OpenSSL to 3.0.20 or later.

How do I check if I'm affected by CVE-2026-31790?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors