{"id":"CVE-2026-31790","published":"2026-04-07T22:00:56Z","modified":"2026-05-12T12:09:06Z","title":"Incorrect Failure Handling in RSA KEM RSASVE Encapsulation","vendor":"OpenSSL","product":"OpenSSL","tier":"tail","description":{"text":"Issue summary: Applications using RSASVE key encapsulation to establish\na secret encryption key can send contents of an uninitialized memory buffer to\na malicious peer.\n\nImpact summary: The uninitialized buffer might contain sensitive data from the\nprevious execution of the application process which leads to sensitive data\nleakage to an attacker.\n\nRSA_public_encrypt() returns the number of bytes written on success and -1\non error. The affected code tests only whether the return value is non-zero.\nAs a result, if RSA encryption fails, encapsulation can still return success to\nthe caller, set the output lengths, and leave the caller to use the contents of\nthe ciphertext buffer as if a valid KEM ciphertext had been produced.\n\nIf applications use EVP_PKEY_encapsulate() with RSA/RSASVE on an\nattacker-supplied invalid RSA public key without first validating that key,\nthen this may cause stale or uninitialized contents of the caller-provided\nciphertext buffer to be disclosed to the attacker in place of the KEM\nciphertext.\n\nAs a workaround calling EVP_PKEY_public_check() or\nEVP_PKEY_public_check_quick() before EVP_PKEY_encapsulate() will mitigate\nthe issue.\n\nThe FIPS modules in 3.6, 3.5, 3.4, 3.3, 3.1 and 3.0 are affected by this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00466,"percentile":0.32357,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://openssl-library.org/news/secadv/20260407.txt","tags":["vendor-advisory"]},{"url":"https://github.com/openssl/openssl/commit/abd8b2eec7e3f3fda60ecfb68498b246b52af482","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/001e01db3e996e13ffc72386fe79d03a6683b5ac","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/d5f8e71cd0a54e961d0c3b174348f8308486f790","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/b922e24e5b23ffb9cb9e14cadff23d91e9f7e406","tags":["patch"]},{"url":"https://github.com/openssl/openssl/commit/eed200f58cd8645ed77e46b7e9f764e284df379e","tags":["patch"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":6.47},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"openssl","affectedVersions":[{"vendor":"OpenSSL","product":"OpenSSL","versions":[">= 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"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-08T14:32:04.700201Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-19969","exploited":false,"provenance":"source"}}