GHSA-8h58-w33p-wq3g: Pgp RPGP Affected By Crash Vulnerability
HIGHGHSA-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
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.
Upgrade pgp to 0.19.0
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
GHSA-8h58-w33p-wq3g Affected Pgp Versions
1 component(s)| 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?
Which Pgp versions are affected?
What version fixes GHSA-8h58-w33p-wq3g?
Is pgp affected?
What CWE is associated with GHSA-8h58-w33p-wq3g?
How can I check crates.io dependencies for GHSA-8h58-w33p-wq3g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}