Incorrect calculation in Bouncy Castle for Java - CVE-2025-14813

 

Incorrect calculation in Bouncy Castle for Java - CVE-2025-14813

Published: May 25, 2026


Vulnerability identifier: #VU132273
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-14813
CWE-ID: CWE-682
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Legion of the Bouncy Castle Inc.
Affected software:
Bouncy Castle for Java

Detailed vulnerability description

The vulnerability allows a remote attacker to cause cryptographic operations to fail.

The vulnerability exists due to improper implementation in G3413CTRBlockCipher when encrypting or decrypting more than 255 blocks. A remote attacker can supply data that exceeds this limit to cause cryptographic operations to fail.

The issue affects the GOST-R-3413-2015 CTR mode implementation because it uses a single-byte counter instead of a counter size aligned with the algorithm definition.


How to mitigate CVE-2025-14813

Install security update from vendor's website.

Sources