CVE-2026-59646

DTLS handshake reassembler allocates buffer from unchecked 24-bit length

Published Aug 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
In Bouncy Castle for Java before 1.85, DTLS handshake reassembler allocates buffer from unchecked 24-bit length. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).

Analysis

AI-generated

Technical impact

The flaw stems from the DTLS handshake reassembler allocating a buffer based on an unchecked 24‑bit length field. Because the length value is not validated against the actual input size, an attacker can trigger a buffer overrun, causing memory corruption that may crash the application or potentially allow arbitrary code execution, as described by CWE‑789.

Affected Systems

The vulnerability affects all Bouncy Castle for Java releases prior to 1.85, including the long‑term support branch before 2.73.12, and all Bouncy Castle for Java FIPS (BC‑FJA) builds before bctls‑fips 1.0.24, 2.0.24, and 2.1.24. Systems that use these libraries in DTLS implementations should verify their software version against these thresholds.

Risk and Exploitability

The CVSS score of 8.7 signals a high‑severity vulnerability, and although an EPSS score is not available, the absence of a KEV listing does not mitigate the risk of exploitation. An attacker can supply a malicious DTLS handshake packet to a server or client using the affected library, triggering the unchecked buffer allocation. Current mitigation requires applying the published patch or upgrading to a fixed library release.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Bouncy Castle for Java library to version 1.85 or newer, or to LTS 2.73.12 or newer, and for FIPS builds upgrade to bctls‑fips 1.0.24, 2.0.24, or 2.1.24 or later.
  • If an upgrade cannot be applied immediately, disable DTLS processing in the affected application or replace it with a vetted DTLS implementation to prevent the unchecked allocation.
  • After applying the patch or upgrade, conduct functional testing of the DTLS handshake in a staging environment before deploying changes to production.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Bouncycastle bctls-fips
Bouncycastle bouncy Castle For Java Lts
CPEs cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bctls-fips:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle
Bouncycastle bc-java
Bouncycastle bctls-fips
Bouncycastle bouncy Castle For Java Lts
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, DTLS handshake reassembler allocates buffer from unchecked 24-bit length. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
Title DTLS handshake reassembler allocates buffer from unchecked 24-bit length
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'}

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Aug 3, 2026, 2:53 PM
Reserved
Jul 6, 2026, 6:58 AM
Status
Analyzed
Published
Aug 3, 2026, 1:16 AM
Modified
Aug 28, 2026, 7:57 PM