Unbounded compressed packet nesting in PGPainless enables denial of service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
PGPainless, an OpenPGP API based on Bouncy Castle, is affected before 1.7.8 and from 2.0.0 before 2.0.4. The InlineDetachImpl and MessageInspector classes descend nested compressed data packets without enforcing the maximum layer depth of 16 (CWE-400). A remote unauthenticated attacker can supply a message with deeply nested compressed packets to an application that uses inline-detach or message inspection, which can block threads, exhaust heap memory and crash the application.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
PGPainless is a simple-to-use OpenPGP API based on Bouncy Castle. Prior to 1.7.8 and from 2.0.0 until 2.0.4, pgpainless-sop/src/main/kotlin/org/pgpainless/sop/InlineDetachImpl.kt InlineDetachImpl and pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageInspector.kt MessageInspector manually descend PGPCompressedData packets without incrementing or enforcing MAX_LAYER_DEPTH. A remote unauthenticated attacker can supply an untrusted OpenPGP message containing deeply nested compressed packet structures to a downstream application using inline-detach or message inspection, bypass the intended 16-layer limit, and force continued decompression and packet processing. The resulting resource consumption can block processing threads, exhaust heap memory, and crash the consuming application. This issue is fixed in versions 1.7.8 and 2.0.4.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pgpainless | pgpainless | before 1.7.8; 2.0.0 to before 2.0.4 | 1.7.8, 2.0.4 | Patch available | CNA |
| — | org.pgpainless:pgpainless-core (Maven) | before 1.7.8 | 1.7.8 | Patch available | GHSA-cvx8-9ff6-54xq |
| — | org.pgpainless:pgpainless-core (Maven) | 2.0.0 to before 2.0.4 | 2.0.4 | Patch available | GHSA-cvx8-9ff6-54xq |
- pgpainless Vendorpgpainless Affected before 1.7.8; 2.0.0 to before 2.0.4 Fixed in 1.7.8, 2.0.4 Patch available CNA
- org.pgpainless:pgpainless-core (Maven) Vendor— Affected before 1.7.8 Fixed in 1.7.8 Patch available GHSA-cvx8-9ff6-54xq
- org.pgpainless:pgpainless-core (Maven) Vendor— Affected 2.0.0 to before 2.0.4 Fixed in 2.0.4 Patch available GHSA-cvx8-9ff6-54xq
Remediation
Upgrade pgpainless to version 1.7.8 if you use a release before 1.7.8, or to version 2.0.4 if you use a release from 2.0.0 before 2.0.4. The Maven artifact org.pgpainless:pgpainless-core is fixed in 1.7.8 and 2.0.4 as well.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA pgpainless (pgpainless) Fixed in 1.7.8, 2.0.4
- Fix · GHSA-cvx8-9ff6-54xq org.pgpainless:pgpainless-core (Maven) Fixed in 1.7.8 Advisory →
- Fix · GHSA-cvx8-9ff6-54xq org.pgpainless:pgpainless-core (Maven) Fixed in 2.0.4 Advisory →
Timeline
- 2026-11-18 Threatist record created from CVE-2026-76088
- 2026-11-19 Alias added: GHSA-cvx8-9ff6-54xq
- 2026-11-19 Fix available: Maven/org.pgpainless:[email protected], Maven/org.pgpainless:[email protected] · GHSA-cvx8-9ff6-54xq
- 2026-11-19 CVSS score added · GHSA-cvx8-9ff6-54xq
- 2026-11-19 Weakness changed · GHSA-cvx8-9ff6-54xq
- 2026-11-19 7 new references · GHSA-cvx8-9ff6-54xq
- 2026-11-19 CISA SSVC decision points changed
References
Other 6
- https://github.com/pgpainless/pgpainless/security/advisories/GHSA-cvx8-9ff6-54xq
- https://github.com/pgpainless/pgpainless/commit/7662f084595945f1000f3f2e1bc4e15302194dec
- https://github.com/pgpainless/pgpainless/commit/94572773f62e313ae905c48314de44efcf82420e
- https://github.com/pgpainless/pgpainless/releases/tag/1.7.8
- https://github.com/pgpainless/pgpainless/releases/tag/2.0.4
- https://github.com/pgpainless/pgpainless
Sources
- CVE-2026-76088 · CVE Program
- CVE-2026-76088 · NVD
- FIRST EPSS
- GHSA-cvx8-9ff6-54xq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences