CVE-2024-53856: rPGP Panics on Malformed Untrusted Input
During a security audit, Radically Open Security discovered several reachable edge cases which allow an attacker to trigger rpgp crashes by providing crafted data. Impact When processing malformed input, rpgp can run into Rust panics which halt the program.
Published Dec 5, 2024 · Updated Dec 26, 2025
Affected packages
pgp
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.14.1
- Fixed in
- 0.14.1
- Check
cargo tree -i pgp
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
During a security audit, Radically Open Security discovered several reachable edge cases which allow an attacker to trigger rpgp crashes by providing crafted data.
Impact
When processing malformed input, rpgp can run into Rust panics which halt the program.
This can happen in the following scenarios:
- Parsing OpenPGP messages from binary or armor format
- Decrypting OpenPGP messages via
decrypt_with_password() - Parsing or converting public keys
- Parsing signed cleartext messages from armor format
- Using malformed private keys to sign or encrypt
Given the affected components, we consider most attack vectors to be reachable by remote attackers during typical use cases of the rpgp library. The attack complexity is low since the malformed messages are generic, short, and require no victim-specific knowledge.
The result is a denial-of-service impact via program termination. There is no impact to confidentiality or integrity security properties.
Versions and Patches
All recent versions are affected by at least some of the above mentioned issues.
The vulnerabilities have been fixed with version 0.14.1. We recommend all users to upgrade to this version.
References
The security audit was made possible by the NLnet Foundation NGI Zero Core grant program for rpgp.
Credited to invd, hko-s, dignifiedquire, link2xt.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-7587-4wv6-m68m
rPGP vulnerable to parser crash on crafted RSA secret key packets through CVE-2026-21895
high8.7Feb 13, 2026GHSA-8h58-w33p-wq3g
rPGP affected by crash in message handling for deeply nested messages
high8.7Feb 13, 2026GHSA-c7ph-f7jm-xv4w
rPGP's integrity protection of encrypted data was not always checked
medium6.3Feb 13, 2026CVE-2024-53857
rPGP Potential Resource Exhaustion when handling Untrusted Messages
high7.5Dec 5, 2024
