{"id":"DHI-rn6s-2zf3-yckl-3g2a","summary":"Issue summary: Applications using RSASVE key encapsulation to establish","details":"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.","modified":"2026-11-30T20:45:11.614842009Z","published":"2026-11-20T20:19:58Z","upstream":["CVE-2026-31790"],"database_specific":{"coverage_exclusions":["legacy_package_image_owner"],"coverage":"partial"},"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-rn6s-2zf3-yckl-3g2a"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31790"},{"type":"ADVISORY","url":"https://openssl-library.org/news/secadv/20260407.txt"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/eed200f58cd8645ed77e46b7e9f764e284df379e"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/d5f8e71cd0a54e961d0c3b174348f8308486f790"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/b922e24e5b23ffb9cb9e14cadff23d91e9f7e406"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/abd8b2eec7e3f3fda60ecfb68498b246b52af482"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/001e01db3e996e13ffc72386fe79d03a6683b5ac"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-19218.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:19218"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-31790"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1586.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-31790"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-28390"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-28389"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-28388"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-28387"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-31790"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19066.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19066.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-19218.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-19218.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-27744.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-27744.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-27746.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-27746.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-39297.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-39297.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-500005.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-500005.html"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-31790"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19066"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:19218"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:39297"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-31790"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-31790"}],"affected":[{"package":{"name":"openssl-provider-fips","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/openssl-provider-fips"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.2-r0"}]}],"versions":["3.1.2-r0","3.1.2-r1","3.1.2-r2","3.1.2-r3","3.1.2-r4","3.1.2-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-rn6s-2zf3-yckl-3g2a.json"}},{"package":{"name":"openssl","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/openssl"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.6-r0"}]}],"versions":["3.5.4-r0","3.5.5-r0","3.5.5_git20260330-r1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-rn6s-2zf3-yckl-3g2a.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}