Intel

AIKIDO-2026-127195

bcpg-jdk15to18 is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-59649 Published Yesterday

87

High Risk

This Affects:

JAVAbcpg-jdk15to18
0.0.1 - 1.84.0
Fixed in 1.85.0
Are you affected? Scan for Free

TL;DR

The OpenPGP user-attribute subpacket reader in UserAttributeSubpacketInputStream sizes the subpacket body buffer directly from the wire length header. During packet parsing the available-bytes guard returns a value close to the JVM heap size instead of the bytes actually present, potentially leading to memory exhaustion. The fix rejects any subpacket body length above a fixed 2 MiB cap before allocating.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses OpenPGP certificates, keys, or messages that can originate from untrusted sources.

Background info

bcpg-jdk15to18 is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.84.0.

How to fix this

Upgrade the org.bouncycastle:bcpg-jdk15to18 library to the patch version.