GHSA-8h58-w33p-wq3g: Pgp RPGP Affected By Crash Vulnerability

HIGH
CWE-121
Published
Advisory Summary

GHSA-8h58-w33p-wq3g is a HIGH rpgp affected by crash vulnerability (CWE-121: Stack-based Buffer Overflow) affecting Pgp libraries in the crates.io ecosystem. The issue involves rpgp affected by crash in message handling for deeply nested messages. Remediation is available by upgrading affected packages to version 0.19.0.

GHSA-8h58-w33p-wq3g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8h58-w33p-wq3g
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product Pgp
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-8h58-w33p-wq3g

To remediate this vulnerability, upgrade all affected Pgp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pgp fixed: 0.19.0
Upgrade pgp to 0.19.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for pgp

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8h58-w33p-wq3g, inspect your project dependencies for Pgp:

inspect dependencies for pgp

Analyze the terminal output to locate any version of Pgp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In Pgp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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.

GHSA-8h58-w33p-wq3g Affected Pgp Versions

1 component(s)
Fixed Versions:
0.19.0
Product / Package Ecosystem Affected Versions Fixed Version
pgp
crates.io
≥ 0.16.0-alpha.0
< 0.19.0
0.19.0

References

Frequently Asked Questions

What is GHSA-8h58-w33p-wq3g?
GHSA-8h58-w33p-wq3g is a security vulnerability in Pgp involving rPGP affected by crash in message handling for deeply nested messages under CWE-121: Stack-based Buffer Overflow.
Which Pgp versions are affected?
Affected versions include releases prior to 0.19.0 across affected packages: pgp.
What version fixes GHSA-8h58-w33p-wq3g?
Upgrading to 0.19.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pgp affected?
Yes, pgp is affected in releases prior to 0.19.0. Upgrade your dependency to 0.19.0 or later.
What CWE is associated with GHSA-8h58-w33p-wq3g?
GHSA-8h58-w33p-wq3g is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check crates.io dependencies for GHSA-8h58-w33p-wq3g?
Run the dependency tree command: 'inspect dependencies for pgp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8h58-w33p-wq3g",
  "modified" : "2026-02-13T20:54:27Z",
  "published" : "2026-02-13T20:54:27Z",
  "aliases" : [ ],
  "summary" : "rPGP affected by crash in message handling for deeply nested messages",
  "details" : "### Summary\nPrevious 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.\n\nrPGP 0.19.0 resolves this issue with a more robust message handling implementation (via https://github.com/rpgp/rpgp/pull/625).\n\n### Impact\nAn attacker could cause applications to crash in rPGP's message parsing subsystem, when applications attempt to ingest messages.\n\n### Attribution\nDiscovered internally during rPGP development, using a fuzz test suite previously contributed by Christian Reitter.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "pgp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.16.0-alpha.0"
      }, {
        "fixed" : "0.19.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rpgp/rpgp/security/advisories/GHSA-8h58-w33p-wq3g"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rpgp/rpgp/pull/625"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rpgp/rpgp/commit/e82f2c7494ba277d62fd372d69b2c008473bbef8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rpgp/rpgp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-121" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-13T20:54:27Z",
    "nvd_published_at" : null
  }
}