Skip to content

← Public intelligence

crates.io package

pgp

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

5 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.3crates.ioPublished

    rPGP's integrity protection of encrypted data was not always checked

    GHSA-c7ph-f7jm-xv4w

    Affected
    • crates.io pgp >= 0.16.0-alpha.0, < 0.19.0
    Fixed in
    0.19.0· Vendor fix available
    Issue
    For some messages, rPGP returned incorrectly decrypted data without signaling that integrity protection was invalid. Details When decrypting SEIPD (Symmetrically Encrypted and Integrity Protected Data Packet), rPGP previously did not under all circumstances report the absence of valid integrity protection to callers of the library. Impact While the resulting invalid decryption output is not attacker controlled, its contents may be a security concern if an attacker can gain access to it. Attribution Discovered internally in the course of rPGP development work.

    Recommended action: Upgrade to 0.19.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. High, CVSS 8.7crates.ioPublished

    rPGP affected by crash in message handling for deeply nested messages

    GHSA-8h58-w33p-wq3g

    Affected
    • crates.io pgp >= 0.16.0-alpha.0, < 0.19.0
    Fixed in
    0.19.0· Vendor fix available
    Issue
    Previous rPGP versions could be caused to crash with a "stack overflow" when parsing messages that contain deeply nested message layers, such as messages with many signatures. rPGP 0.19.0 resolves this issue with a more robust message handling implementation (via https://github.com/rpgp/rpgp/pull/625). Impact An attacker could cause applications to crash in rPGP's message parsing subsystem, when applications attempt to ingest messages. Attribution Discovered internally during rPGP development, using a fuzz test suite previously contributed by Christian Reitter.

    Recommended action: Upgrade to 0.19.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. High, CVSS 8.7crates.ioPublished

    rPGP vulnerable to parser crash on crafted RSA secret key packets through CVE-2026-21895

    GHSA-7587-4wv6-m68m

    Affected
    • crates.io pgp >= 0.16.0-alpha.0, < 0.19.0
    Fixed in
    0.19.0· Vendor fix available
    Issue
    It 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. Details While 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. For 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. In rPGP, this has been fixed via https://github.com/rpgp/rpgp/pull/698. Impact This issue impacts availability (i.e. applications…

    Recommended action: Upgrade to 0.19.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. High, CVSS 8.7crates.ioPublished

    rPGP Potential Resource Exhaustion when handling Untrusted Messages

    CVE-2024-53857 · GHSA-4grw-m28r-q285

    Affected
    • crates.io pgp < 0.14.2
    Fixed in
    0.14.2· Vendor fix available
    Issue
    During a security audit, Radically Open Security discovered two vulnerabilities which allow attackers to trigger resource exhaustion vulnerabilities in rpgp by providing crafted messages. This affects general message parsing and decryption with symmetric keys. Impact Affected rpgp versions do not correctly set upper limits on the total reserved amount of memory when parsing long sequences of partial OpenPGP packets, which can grow to to several GiB in size. Additionally, up to 4GiB of memory is reserved for OpenPGP packets of fixed size with large length fields, even if less data is received. Depending on existing message size restrictions and available system resources, this can cause out-of-memory conditions and crash the rpgp process or cause other system instability through memory resource exhaustion when parsing crafted messages. Affected rpgp versions are susceptible to excessive memory allocation with values of up to 2TiB or long processing times for some decryption operations…

    Recommended action: Upgrade to 0.14.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. High, CVSS 8.7crates.ioPublished

    rPGP Panics on Malformed Untrusted Input

    CVE-2024-53856 · GHSA-9rmp-2568-59rv

    Affected
    • crates.io pgp < 0.14.1
    Fixed in
    0.14.1· Vendor fix available
    Issue
    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 decryptwithpassword() 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…

    Recommended action: Upgrade to 0.14.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →