{"id":"GHSA-7587-4wv6-m68m","aliases":[],"url":"https://o3.security/vulnerability/GHSA-7587-4wv6-m68m","summary":"rPGP vulnerable to parser crash on crafted RSA secret key packets through CVE-2026-21895","details":"### Summary\nIt was possible to trigger an unhandled edge case in the Rust Crypto rsa crate through rPGP packet parsing functionality, and crash the process that runs rPGP. This problem has been patched in a new rsa version. The new release of rPGP ensures a patched version of the rsa crate is in use, which prevents this issue.\n\n### Details\nWhile parsing a special RSA secret key packet, rPGP calls the rsa crate with the provided key. On vulnerable versions, this results in a Rust \"panic\" during key construction. Note that an attacker can trigger this situation even in places where applications don't expect to handle foreign key material, for example while attempting to receive a message.\n\nFor more information on the rsa crate vulnerability, see https://github.com/RustCrypto/RSA/security/advisories/GHSA-9c48-w39g-hm26 and https://github.com/RustCrypto/RSA/pull/624.\nIn rPGP, this has been fixed via https://github.com/rpgp/rpgp/pull/698.\n\n### Impact\nThis issue impacts availability (i.e. applications can crash).\n\nAffected rPGP versions: rPGP 0.16.0-alpha.0 to 0.18.0\nVulnerable rsa versions: all before version 0.9.10\n\n### Workaround\nThe issue depends on the combination of affected rPGP and rsa versions. Users of affected rPGP versions can pin the patched rsa 0.9.10 via a cargo lockfile to mitigate the issue.\n\n### Attribution\nDiscovered by Christian Reitter from Radically Open Security during a security review for Proton AG.","published":"2026-02-13T20:54:19Z","modified":"2026-02-22T23:32:10.037700Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"pgp","fixedVersion":"0.19.0"}],"fix":{"url":"https://github.com/rpgp/rpgp/pull/698","label":"rpgp/rpgp#698"},"references":[{"type":"WEB","url":"https://github.com/rpgp/rpgp/security/advisories/GHSA-7587-4wv6-m68m"},{"type":"WEB","url":"https://github.com/rpgp/rpgp/pull/698"},{"type":"WEB","url":"https://github.com/rpgp/rpgp/commit/38efa49ce18b3821649de9cd8dea88a959b833a5"},{"type":"PACKAGE","url":"https://github.com/rpgp/rpgp"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-02-22T23:32:10.037700Z"}}