Intel

AIKIDO-2026-127195

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

CVE-2026-59649Published Aug 6, 2026
August 6, 2026

87

CVE Score

High

Denial of Service (DoS)

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.

How do I fix this?

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

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.

Versions

0.0.1 - 1.84

Fixed in 1.85

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea