Vulnerability HighRUSTSEC-2024-0447 · pgp
RUSTSEC-2024-0447: Panics on Malformed Untrusted Input
Short answerA security vulnerability in the pgp crate: Panics on Malformed Untrusted Input. High severity (CVSS 7.5). Fixed in 0.14.1: update to a fixed version.
| Crate | pgp |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.14.1. |
| Fixed in | 0.14.1 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2024-12-05 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2024-53856, GHSA-9rmp-2568-59rv |
What to do
- See which version you have:
cargo tree -i pgp(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p pgp. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplepgp = "0.14.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/pgp
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0447.html
- Web: github.com/rpgp/rpgp/commit/91b9f517f3bc38e7b14518a156bff81ee69301fc
- Web: github.com/radicallyopensecurity/ros-website/blob/8169b16fc138a0b0dde14dd0e222d1279701b4d3/ros-public-reports/ROS%20-%20NLNet%20-%20rPGP%20-%202024.pdf
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for pgp
- VulnerabilityGHSA-4grw-m28r-q285 · 2024-12-05rPGP Potential Resource Exhaustion when handling Untrusted Messages
- VulnerabilityGHSA-7587-4wv6-m68m · 2026-02-13rPGP vulnerable to parser crash on crafted RSA secret key packets through CVE-2026-21895
- VulnerabilityGHSA-8h58-w33p-wq3g · 2026-02-13rPGP affected by crash in message handling for deeply nested messages
- VulnerabilityGHSA-c7ph-f7jm-xv4w · 2026-02-13rPGP's integrity protection of encrypted data was not always checked
Up next
Same cratepgp: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?