NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-14813: Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

criticalCVSS 4.0 9.3 · 3.1 7.5GHSA-574f-3g2m-x479

The GOST 28147-2015 CTR mode implementation (G3413CTRBlockCipher) in the Legion of the Bouncy Castle BC-JAVA bcprov core module only increments the final byte of the counter, so the counter wraps after 255 blocks and the keystream is reused. Reusing CTR keystream allows an attacker who can observe two ciphertexts produced with the same key/IV to recover the XOR of the plaintexts, breaking confidentiality.

Published Apr 17, 2026 · Updated Sep 24, 2026

Affected packages

org.bouncycastle:bcprov-jdk14

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14

org.bouncycastle:bcprov-jdk15to18

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18

org.bouncycastle:bcprov-jdk18on

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
1.80.2
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on

org.bouncycastle:bcprov-debug-jdk14

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk14

org.bouncycastle:bcprov-debug-jdk15to18

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk15to18

org.bouncycastle:bcprov-debug-jdk18on

Ecosystem
Maven
Affected
>= 1.59, <= 1.80.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk18on

org.bouncycastle:bcprov-ext-jdk14

Ecosystem
Maven
Affected
>= 1.59, <= 1.78.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-jdk14

org.bouncycastle:bcprov-ext-jdk15to18

Ecosystem
Maven
Affected
>= 1.59, <= 1.78.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-jdk15to18

org.bouncycastle:bcprov-ext-jdk18on

Ecosystem
Maven
Affected
>= 1.59, <= 1.78.1
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-jdk18on

org.bouncycastle:bcprov-ext-debug-jdk14

Ecosystem
Maven
Affected
>= 1.59, <= 1.74
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-debug-jdk14

org.bouncycastle:bcprov-ext-debug-jdk15to18

Ecosystem
Maven
Affected
>= 1.59, <= 1.77
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-debug-jdk15to18

org.bouncycastle:bcprov-ext-debug-jdk18on

Ecosystem
Maven
Affected
>= 1.59, <= 1.77
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-ext-debug-jdk18on

org.bouncycastle:bcprov-jdk14

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14

org.bouncycastle:bcprov-jdk15to18

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18

org.bouncycastle:bcprov-jdk18on

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
1.81.1
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on

org.bouncycastle:bcprov-debug-jdk14

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk14

org.bouncycastle:bcprov-debug-jdk15to18

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk15to18

org.bouncycastle:bcprov-debug-jdk18on

Ecosystem
Maven
Affected
= 1.81.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk18on

org.bouncycastle:bcprov-jdk14

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14

org.bouncycastle:bcprov-jdk15to18

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18

org.bouncycastle:bcprov-jdk18on

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on

org.bouncycastle:bcprov-debug-jdk14

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk14

org.bouncycastle:bcprov-debug-jdk15to18

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk15to18

org.bouncycastle:bcprov-debug-jdk18on

Ecosystem
Maven
Affected
>= 1.82, <= 1.83
Fixed in
1.84
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk18on

org.bouncycastle:bcprov-debug-jdk15on

Ecosystem
Maven
Affected
<= 1.7.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-debug-jdk15on

org.bouncycastle:bcprov-jdk15on

Ecosystem
Maven
Affected
<= 1.7.0
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15on

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The GOST 28147-2015 CTR mode implementation (G3413CTRBlockCipher) in the Legion of the Bouncy Castle BC-JAVA bcprov core module only increments the final byte of the counter, so the counter wraps after 255 blocks and the keystream is reused. Reusing CTR keystream allows an attacker who can observe two ciphertexts produced with the same key/IV to recover the XOR of the plaintexts, breaking confidentiality. Affects BC-JAVA from 1.59 before 1.84 (with backported fixes in 1.80.2 and 1.81.1).

Credited to simon-reisinger-dynatrace.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries