Skip to content
High 7.5

PGPainlessに遠隔から大量の処理を強いられサービス停止となる脆弱性

CVE-2026-76088 First seen on SecPulse

Summary

PGPainlessのinline-detachとMessageInspectorに、深くネストした圧縮パケットを処理させて、メモリ枯渇やスレッドの停止を招く脆弱性が見つかりました。影響を受けるのは、org.pgpainless:pgpainless-coreの2.0.0以上2.0.4未満です。修正版の2.0.4に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

PGPainlessのinline-detachとMessageInspectorに、深くネストした圧縮パケットを処理させて、メモリ枯渇やスレッドの停止を招く脆弱性が見つかりました。影響を受けるのは、org.pgpainless:pgpainless-coreの2.0.0以上2.0.4未満です。修正版の2.0.4に更新してください。

Affected packages

PackageAffected → Fixed
pgpainlesspgpainless —
Mavenorg.pgpainless:pgpainless-core
< 2.0.4→ 2.0.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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 do…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details