Intel

AIKIDO-2026-464797

bcpg-jdk18on is vulnerable to Uncontrolled Resource Consumption

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

87

CVE Score

High

Uncontrolled Resource Consumption

Are you affected? Scan for Free

TL;DR

Bouncy Castle's OpenPGP user-attribute subpacket parser sizes its buffer from the declared subpacket length before reading the data, bounded only by the JVM heap. A crafted certificate or key with an oversized user-attribute subpacket forces an excessive up-front allocation. This can trigger an out-of-memory condition and crash or freeze the application. The fix bounds the subpacket length before allocation.

How do I fix this?

Upgrade the org.bouncycastle:bcpg-jdk18on 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 or keys containing user-attribute subpackets taken from untrusted input.

Versions

0.0.1 - 1.84

Fixed in 1.85

Background info

bcpg-jdk18on is vulnerable to Uncontrolled Resource Consumption 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