Description
In Bouncy Castle for Java before 1.85, OpenPGP user-attribute subpacket length bounded only by JVM max memory. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).
Published: 2026-08-03
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw exists in Bouncy Castle for Java implementations prior to the specified versions, where the length of an OpenPGP user‑attribute subpacket is not limited except by the maximum size of the JVM heap. An attacker delivering a crafted subpacket can force the library to attempt allocation of an arbitrarily large block of memory, leading to an out‑of‑memory condition that can crash the application or consume all available resources, thereby denying service. This is a classic memory allocation weakness, identified as CWE‑789.

Affected Systems

Affected products include Bouncy Castle for Java (bcpg 1.0‑X series) before version 1.85, the Long Term Support (LTS) Java library before 2.73.12, and the Bouncy Castle for Java FIPS (BC‑FJA) library before bcpg‑fips 1.0.13, 2.0.13, and 2.1.13. These libraries are used in many Java applications that handle OpenPGP data, such as security tools, email clients, or communication platforms relying on Bouncy Castle for cryptographic operations.

Risk and Exploitability

The CVSS base score of 8.7 classifies the vulnerability as high severity. Exploitation requires only the ability to deliver a crafted OpenPGP packet to a Java process that employs an unpatched Bouncy Castle library, making the attack relatively straightforward once the target is identified. EPSS is not available, but the absence of a KEV listing does not diminish the risk, particularly because many organizations deploy Bouncy Castle in complex services exposed to external inputs. An out‑of‑memory attack can terminate services or freeze them, impacting availability for users and potentially causing cascading failures in distributed systems.

Generated by OpenCVE AI on August 3, 2026 at 09:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade all Bouncy Castle Java libraries to versions that contain the fix: bcpg 1.85 or later, LTS 2.73.12 or later, and BC‑FJA bcpg‑fips 1.0.13, 2.0.13, 2.1.13 or newer.
  • If an immediate upgrade is not possible, limit the JVM heap size (e.g., via the -Xmx parameter) to reduce the maximum amount of memory that can be allocated by the affected library, mitigating the worst‑case impact.
  • In the meantime, implement application‑level checks to validate the length of any OpenPGP user‑attribute subpacket before passing it to the library, preventing excessively large values from triggering allocation.

Generated by OpenCVE AI on August 3, 2026 at 09:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 05:30:00 +0000


Mon, 03 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, OpenPGP user-attribute subpacket length bounded only by JVM max memory. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).
Title OpenPGP user-attribute subpacket length bounded only by JVM max memory
Weaknesses CWE-789
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-fja Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-03T13:33:33.251Z

Reserved: 2026-07-06T07:09:01.524Z

Link: CVE-2026-59649

cve-icon Vulnrichment

Updated: 2026-08-03T13:33:29.553Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T01:16:45.120

Modified: 2026-08-04T14:50:12.360

Link: CVE-2026-59649

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:52:38Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value