Incorrect calculation in Bouncy Castle for Java - CVE-2025-14813
Published: May 25, 2026
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.