Read the docs

Unbounded compressed packet nesting in PGPainless enables denial of service

Priority MEDIUM 40CWE-400Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00843 55th percentileScored 2026-11-30
Fix Fixed pgpainless (pgpainless): 1.7.8, 2.0.4org.pgpainless:pgpainless-core (Maven): 1.7.8, 2.0.4

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

VendorProductAffected versionsFixed inStatusSource
pgpainlesspgpainlessbefore 1.7.8; 2.0.0 to before 2.0.41.7.8, 2.0.4Patch availableCNA
—org.pgpainless:pgpainless-core (Maven)before 1.7.81.7.8Patch availableGHSA-cvx8-9ff6-54xq
—org.pgpainless:pgpainless-core (Maven)2.0.0 to before 2.0.42.0.4Patch availableGHSA-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

  1. 2026-11-18 Threatist record created from CVE-2026-76088
  2. 2026-11-19 Alias added: GHSA-cvx8-9ff6-54xq
  3. 2026-11-19 Fix available: Maven/org.pgpainless:[email protected], Maven/org.pgpainless:[email protected] · GHSA-cvx8-9ff6-54xq
  4. 2026-11-19 CVSS score added · GHSA-cvx8-9ff6-54xq
  5. 2026-11-19 Weakness changed · GHSA-cvx8-9ff6-54xq
  6. 2026-11-19 7 new references · GHSA-cvx8-9ff6-54xq
  7. 2026-11-19 CISA SSVC decision points changed

References

Sources