{"id":"UBUNTU-CVE-2025-13470","details":"In RNP version 0.18.0 a refactoring regression causes the symmetric session key used for Public-Key Encrypted Session Key (PKESK) packets to  be left uninitialized except for zeroing, resulting in it always being an all-zero byte array. Any data encrypted using public-key encryption in this release can be decrypted trivially by supplying an all-zero session key, fully compromising confidentiality. The vulnerability affects only public key encryption (PKESK packets). Passphrase-based encryption (SKESK packets) is not affected. Root cause: Vulnerable session key buffer used in PKESK packet generation. The defect was introduced in commit `7bd9a8dc356aae756b40755be76d36205b6b161a` where initialization logic inside `encrypted_build_skesk()` only randomized the key for the SKESK path and omitted it for the PKESK path.","modified":"2026-05-20T16:20:22.026858369Z","published":"2025-11-21T17:15:00Z","upstream":["CVE-2025-13470"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-13470"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-13470"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2415863"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/cve-2025-13402"},{"type":"REPORT","url":"https://aur.archlinux.org/packages/rnp"},{"type":"REPORT","url":"https://github.com/rnpgp/rnp/commit/7bd9a8dc356aae756b40755be76d36205b6b161a"},{"type":"REPORT","url":"https://github.com/rnpgp/rnp/releases/tag/v0.18.1"},{"type":"REPORT","url":"https://launchpad.net/ubuntu/+source/rnp"},{"type":"REPORT","url":"https://open.ribose.com/advisories/ra-2025-11-20/"},{"type":"REPORT","url":"https://packages.gentoo.org/packages/dev-util/librnp"}],"affected":[{"package":{"name":"rnp","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rnp?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.14.0-6","0.15.2-6build1"],"ecosystem_specific":{"binaries":[{"binary_name":"librnp0","binary_version":"0.15.2-6build1"},{"binary_name":"rnp","binary_version":"0.15.2-6build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-13470.json"}},{"package":{"name":"rnp","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rnp?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"librnp0","binary_version":"0.17.0-3"},{"binary_version":"0.17.0-3","binary_name":"rnp"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-13470.json"}},{"package":{"name":"rnp","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rnp?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librnp0","binary_version":"0.17.1-1"},{"binary_version":"0.17.1-1","binary_name":"rnp"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-13470.json"}},{"package":{"name":"rnp","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rnp?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.1-1","0.18.0-4","0.18.1-1","0.18.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.18.1-1build1","binary_name":"librnp0"},{"binary_name":"rnp","binary_version":"0.18.1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-13470.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/AU:Y/RE:H/U:Red"},{"type":"Ubuntu","score":"medium"}]}