Skip to main content

PGPainless CVE-2026-76088

| EUVDEUVD-2026-129289 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-18 GitHub_M GHSA-cvx8-9ff6-54xq
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply untrusted OpenPGP message
  2. Delivery
    Deeply nested ZIP compressed packets
  3. Exploit
    Manual descent bypasses MAX_LAYER_DEPTH=16
  4. Execution
    Unbounded decompression and packet parsing
  5. Persist
    Heap exhaustion and thread blocking
  6. Impact
    Consuming application crash (OOM)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the downstream application pass attacker-controlled OpenPGP messages to one of two specific code paths: the pgpainless-sop InlineDetach interface (sop.inlineDetach().message(...)) or the pgpainless-core MessageInspector utility. No authentication, user interaction, or non-default configuration is otherwise needed - any such consumer processing untrusted inbound messages (mail gateways, clients like FlowCrypt, signed-attachment handlers) is exploitable with a single crafted message. The key limiting factor is that this bypass is confined to those two manual packet-walking paths; the standard OpenPgpMessageInputStream decryption pipeline already enforces MAX_LAYER_DEPTH=16 and is not affected, and only versions <=1.7.7 and 2.0.0-2.0.3 are vulnerable.

Impact

This is a genuine but bounded availability-only issue. All signals are internally consistent: the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 High) describes remote, unauthenticated, low-complexity exploitation with impact limited to availability (C:N/I:N) - matching the description of a resource-exhaustion DoS via unbounded compressed-packet descent (CWE-400). The vuln.today decision label is 'this_week' rather than act_now/emergency, and there is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active exploitation or mass scanning. A detailed PoC methodology is published in the GHSA advisory (loop 64 times wrapping the payload in ZIP-compressed layers, then feed to sop.inlineDetach()), but the input does not mark it as confirmed working exploit code. The real-world priority is tempered by the narrow trigger surface: only applications that call the inline-detach SOP interface or the MessageInspector utility on untrusted messages are affected - the main decryption pipeline already enforces MAX_LAYER_DEPTH=16. So this is a legitimate, patch-worthy DoS for affected integrators (notably SOP/MessageInspector consumers such as mail gateways and clients) rather than a critical, universally-exposed flaw. No signals are missing in a way that conflicts; the chief caveat is that exposure depends entirely on whether a deployment uses the two affected code paths.

Exploit ScenarioDerived

A remote, unauthenticated attacker sends a mail gateway or client (e.g. one built on the pgpainless SOP wrapper or MessageInspector) a single OpenPGP message whose payload is recursively wrapped in dozens of nested compressed-data packets. Because inline-detach and MessageInspector walk PGPCompressedData packets manually without enforcing the 16-layer limit, the library keeps decompressing and parsing every layer, blocking the processing thread and exhausting heap until the consuming application crashes (OOM). The GHSA advisory documents a 64-layer PoC procedure, though the input does not confirm it as weaponized exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Denial of service in PGPainless (versions up to and including 1.7.7, and 2.0.0 through 2.0.3) lets remote unauthenticated attackers crash or stall applications that pass untrusted OpenPGP messages into either the pgpainless-sop inline-detach interface or the pgpainless-core MessageInspector utility. Those two code paths walk PGPCompressedData packets by hand and never increment or check the library's MAX_LAYER_DEPTH = 16 guard, so a message wrapped in dozens of nested compression layers is decompressed and processed without constraint, blocking processing threads and exhausting heap until the consuming service fails. Severity is rated 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, availability-only, CWE-400); the advisory publishes a PoC description that recursively wraps a signed payload 64 times in ZIP compression, so a public PoC reference exists but it is not verified as working exploit code, and there is no CISA KEV entry indicating active exploitation. Impact is bounded: the standard OpenPgpMessageInputStream decryption pipeline already enforces the 16-layer limit and is not affected, and only the two manual packet-walking paths are exposed.

RemediationAI

Vendor-released patches exist: upgrade to PGPainless 1.7.8 on the 1.x line or 2.0.4 on the 2.x line, which add a nestingDepth counter to InlineDetachImpl.kt and MessageInspector.kt and throw MalformedOpenPgpMessageException once MAX_LAYER_DEPTH is exceeded (see https://github.com/pgpainless/pgpainless/security/advisories/GHSA-cvx8-9ff6-54xq, commit 7662f084595945f1000f3f2e1bc4e15302194dec and commit 94572773f62e313ae905c48314de44efcf82420e). There is no configuration flag that restores the limit on the vulnerable versions, so if upgrading immediately is not possible the actionable compensating control is to stop routing untrusted external messages through the two unguarded entry points: remove or gate the sop.inlineDetach() and MessageInspector code paths so untrusted input is only processed by the standard OpenPgpMessageInputStream-based decrypt/verify pipeline, which already enforces the 16-layer ceiling - the trade-off is loss of inline-detach and pre-decryption metadata inspection functionality for those inputs. As a secondary containment measure, bound the blast radius of any residual decompression by capping heap and processing-thread pools for the component that parses untrusted OpenPGP material and imposing request timeouts, accepting reduced throughput and the risk of controlled request failure instead of full application crash, and re-enable the full feature set once the patched 1.7.8 or 2.0.4 artifact is deployed.

Affected VersionsENISA

pgpainless 2.0.0, < 2.0.4
pgpainless < 1.7.8

Affected Packages

maven org.pgpainless:pgpainless-core fix: 1.7.8, 2.0.4
euvd pgpainless fix: 1.7.8, 2.0.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenPGP messages are a stream of packets, and the PGPCompressedData packet type can legally contain further packets inside it, including more compressed-data packets, producing arbitrary nesting. Bouncy Castle supplies the packet parsing primitives that PGPainless builds on, and PGPainless normally defends against decompression-bomb (zip-bomb) input by counting nesting layers in MessageMetadata.kt and refusing anything deeper than the MAX_LAYER_DEPTH = 16 constant, raising MalformedOpenPgpMessageException. The root cause here is an architectural boundary bypass mapped to CWE-400 (Uncontrolled Resource Consumption) with a decompression-bomb flavor: InlineDetachImpl.kt (around lines 78-93) loops over compressedData.dataStream block-by-block instead of delegating to the guarded OpenPgpMessageInputStream tracking machinery, and MessageInspector.kt (around line 95) descends recursively into nested compressed packets to classify inner content (for example to determine encryption state) without referencing the depth limit. Neither path keeps a layer-depth counter, so the enforced ceiling is silently absent exactly where an attacker-controlled stream is inspected. The upstream fix adds a local nestingDepth counter to both classes and throws MalformedOpenPgpMessageException once the count exceeds MAX_LAYER_DEPTH, importing the shared constant so the limit stays consistent with the main pipeline. The affected artifact is maven/org.pgpainless:pgpainless-core (vulnerable <= 1.7.7 and 2.0.0-2.0.3), with the SOP wrapper module pgpainless-sop carrying the InlineDetachImpl variant; the CVE record's CPE is cpe:2.3:a:pgpainless:pgpainless:*:*:*:*:*:*:*:*.

Know when Pgpainless gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated attacker supplies a crafted message with no interaction (AV:N/AC:L/PR:N/UI:N); impact is resource-exhaustion DoS only, so C:N/I:N/A:H with no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 22:03 EUVD
CVE Published
Nov 18, 2026 - 20:47 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6 maven packages depend on org.pgpainless:pgpainless-core (3 direct, 3 indirect)

Ecosystem-wide dependent count for version 2.0.0.

Technical POC Analysis

Uncontrolled resource consumption (CWE-400; the advisory also maps CWE-409) caused by two manual OpenPGP packet-walking paths that do not enforce PGPainless's nesting limit.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CVE-2026-76088 in PGPainless, a library for OpenPGP message processing, allows unauthenticated remote attackers to crash or stall applications by sending deeply nested compressed messages, causing service outages. Any service that processes untrusted OpenPGP input using the affected interfaces is at risk, and since the library is embedded in downstream applications, leadership should prioritize remediation to prevent availability disruptions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include limiting the depth of compressed data (e.g., rejecting messages with more than 16 nested layers), restricting processing of untrusted OpenPGP messages to trusted sources, and implementing application-level monitoring to detect and block anomalous nesting patterns.

Threat Intelligence Overview

EPSS Score
0.7%
Top 45% exploitable
Prevalence
Low
niche Kotlin/Java OpenPGP library, limited to specific SOP/mail integrators
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy