PGPainless: Unbounded Compressed Packet Descent in inline-detach and MessageInspector leads to Denial of Service (DoS)
- CVE-2026-76088
- GHSA-cvx8-9ff6-54xq
- EUVD-2026-129289
Description
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.
Text from the CVE.org record.
Recommendation
org.pgpainless:pgpainless-core
- If you run 2.0.xupdate to 2.0.4 or laterPatch update: breaking changes are unlikelyorg.pgpainless:pgpainless-core 2.0.4 on its registry (opens in a new tab)
- If you run a version before 1.7.8update to 1.7.8 or laterorg.pgpainless:pgpainless-core 1.7.8 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
pgpainless
Affected versions Fixed in < 1.7.8 none stated >= 2.0.0, < 2.0.4 none stated org.pgpainless:pgpainless-coreMaven
Affected versions Fixed in from 2.0.0 to before 2.0.4 2.0.4 before 1.7.8 1.7.8
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.