CriticalGHSA-574f-3g2m-x479CVE-2025-14813

Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

Published 17 Apr 2026 · Updated 24 Sept 2026

Is your project on an affected org.bouncycastle:bcprov-jdk14?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=1.59 <=1.80.1
Fixed in
No fix released
Affected
>=1.59 <=1.80.1
Fixed in
No fix released
Affected
>=1.59 <1.80.2
Fixed in
1.80.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk18on -DdepVersion=1.80.2 -DforceVersion=true
Affected
>=1.59 <=1.80.1
Fixed in
No fix released
Affected
>=1.59 <=1.80.1
Fixed in
No fix released
Affected
>=1.59 <=1.80.1
Fixed in
No fix released
Affected
>=1.59 <=1.78.1
Fixed in
No fix released
Affected
>=1.59 <=1.78.1
Fixed in
No fix released
Affected
>=1.59 <=1.78.1
Fixed in
No fix released
Affected
>=1.59 <=1.74
Fixed in
No fix released
Affected
>=1.59 <=1.77
Fixed in
No fix released
Affected
>=1.59 <=1.77
Fixed in
No fix released
Affected
1.81.0
Fixed in
No fix released
Affected
1.81.0
Fixed in
No fix released
Affected
>=1.81.0 <1.81.1
Fixed in
1.81.1
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk18on -DdepVersion=1.81.1 -DforceVersion=true
Affected
1.81.0
Fixed in
No fix released
Affected
1.81.0
Fixed in
No fix released
Affected
1.81.0
Fixed in
No fix released
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk14 -DdepVersion=1.84 -DforceVersion=true
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15to18 -DdepVersion=1.84 -DforceVersion=true
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk18on -DdepVersion=1.84 -DforceVersion=true
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-debug-jdk14 -DdepVersion=1.84 -DforceVersion=true
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-debug-jdk15to18 -DdepVersion=1.84 -DforceVersion=true
Affected
>=1.82 <1.84
Fixed in
1.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-debug-jdk18on -DdepVersion=1.84 -DforceVersion=true
Affected
<=1.7.0
Fixed in
No fix released
Affected
<=1.7.0
Fixed in
No fix released

Details

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).

Is GHSA-574f-3g2m-x479 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.bouncycastle:bcprov-jdk14, and gives you the command that fixes it.

More advisories for org.bouncycastle:bcprov-jdk14

  • HighCVE-2026-5598Bouncy Castle Has Covert Timing Channel Vulnerability · 17 Apr 2026
  • MediumCVE-2026-0636Bouncy Castle has an LDAP injection · 17 Apr 2026
  • MediumCVE-2025-8885Bouncy Castle for Java on All (API modules) allows Excessive Allocation · 12 Aug 2025
  • MediumCVE-2024-29857Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation. · 14 May 2024
  • MediumCVE-2024-30172Bouncy Castle crafted signature and public key can be used to trigger an infinite loop · 14 May 2024
  • MediumCVE-2024-30171Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack") · 14 May 2024
All 26 advisories for org.bouncycastle:bcprov-jdk14

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.