CVE-2025-13470

NameCVE-2025-13470
DescriptionIn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1121081

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rnp (PTS)bookworm0.16.3-1fixed
trixie0.17.1-1fixed
forky, sid0.18.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rnpsourcebookworm(not affected)
rnpsourcetrixie(not affected)
rnpsource(unstable)0.18.1-11121081

Notes

[trixie] - rnp <not-affected> (Vulnerable code introduced later)
[bookworm] - rnp <not-affected> (Vulnerable code introduced later)
https://bugzilla.redhat.com/show_bug.cgi?id=2415863
Introduced with: https://github.com/rnpgp/rnp/commit/020c61c4814d29d723b62ee4a2d2719a6b397acf (v0.18.0)
Fixed by: https://github.com/rnpgp/rnp/commit/1a2359d623e4eac8e81e4c24195fb39898f37b40 (v0.18.1)

Search for package or bug name: Reporting problems