llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Maven · org.pgpainless:pgpainless-core

GHSA-CVX8-9FF6-54XQ

PGPainless: Unbounded Compressed Packet Descent in inline-detach and MessageInspector leads to Denial of Service (DoS)

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones1.7.8 · 2.0.4
Exposición3 hDesde la divulgación, 18 nov 2026, 7:53 p. m.
Detección47 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada +1
07:53 p. m.
08:30 p. m.
11:11 p. m.
07:53 p. m.
08:43 p. m.
09:32 p. m.
10:22 p. m.
11:11 p. m.
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CVX8-9FF6-54XQ divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
An architectural security boundary bypass in inline-detach and MessageInspector allows remote, unauthenticated attackers to force unbounded recursive decompression routines. By supplying a specially crafted OpenPGP message containing deeply nested compressed packet structures, an attacker can completely bypass the library's built-in DoS protections (MAX_LAYER_DEPTH = 16), leading to resource exhaustion, thread blocking, and potential Out-of-Memory (OOM) application crashes.

### Details
The pg-painless core processing pipeline implements a defensive threshold constraint to prevent decompression bomb sequences (Zip Bombs) and arbitrary resource consumption:

Enforcement Location: pgpainless-main/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageMetadata.kt

Threshold Constant: MAX_LAYER_DEPTH = 16

However, a code architecture review revealed two specific packet-walking implementations that unpack and step through PGPCompressedData packets manually, entirely failing to track or increment a layer depth index counter against the static compliance limits:

In InlineDetachImpl.kt (Line ~78-93): The logic loops over data packets via compressedData.dataStream. Because it processes the incoming data block-by-block without leveraging or passing constraints down to the guarded OpenPgpMessageInputStream tracking mechanism, it accepts infinite nesting.

In MessageInspector.kt (Line ~95): The inspector utility descends recursively down nested compressed packet layouts to ascertain inner content classification markers (e.g., determining encryption states) without referencing or respecting maximum layer depth boundaries.

### PoC
The vulnerability can be verified by constructing an inline-signed binary message wrapped recursively inside multiple layers of compression packets:

Generate a standard, valid OpenPGP public/private keypair.

Sign a plaintext document sample utilizing binary inline-signing configurations (.noArmor()).

Programmatically loop 64 times over the output payload. In each iteration, encapsulate the previous binary output into a new PGPCompressedDataGenerator context configured with CompressionAlgorithmTags.ZIP.

Pass the final 64-layer nested byte array stream directly to the SOP interface via sop.inlineDetach().message(nestedBytes).toByteArrayAndResult().

Observed Result: The library completely parses the highly nested structures, returning a successful outcome without raising any execution constraints. The code fails to throw the expected SOPGPException.BadData, proving that the 16-layer boundary constraint was completely bypassed during the streaming packet loop.

Impact

Who is impacted: Any downstream application, gateway, or mail client (such as FlowCrypt or any framework integrating the library's SOP wrapper interface/MessageInspector modules) that handles untrusted, incoming external user files or signed attachment streams. An attacker can use this behavior to systematically freeze application threads, exhaust target heap allocation metrics, and disrupt backend infrastructure services.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida
org.pgpainless:pgpainless-core< 1.7.8
org.pgpainless:pgpainless-core≥ 2.0.0 < 2.0.4
1.7.8
2.0.0
2.0.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Mavenorg.pgpainless:pgpainless-core
Corregida 1.7.8, 2.0.4 — —
Versiones corregidas1.7.82.0.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-76088
Otrahttps://github.com/pgpainless/pgpainless/security/advisories/GHSA-cvx8-9ff6-54xq
Otrahttps://github.com/pgpainless/pgpainless/commit/7662f084595945f1000f3f2e1bc4e15302194dec
Otrahttps://github.com/pgpainless/pgpainless/commit/94572773f62e313ae905c48314de44efcf82420e
Otrahttps://github.com/pgpainless/pgpainless
Otrahttps://github.com/pgpainless/pgpainless/releases/tag/1.7.8
Otrahttps://github.com/pgpainless/pgpainless/releases/tag/2.0.4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.