Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
Published Apr 15, 2026 · Updated Nov 3, 2026
Original summary
Normalized public record · Updated Nov 3, 2026
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
Publisher and source text is retained separately from QFinch interpretation.
QFinch assessment
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).
Evidence: public source recordsAffected products
| Affected package, product or range | Fix status |
|---|---|
| Consult the referenced vendor advisory for affected versions. | Consult source advisory |
Matching a version is only one part of assessing exposure. QFinch has not assessed your environment on this public page.
Remediation
Apply the vendor-supported fixed release or mitigation, then verify the affected component is no longer reachable.
- Confirm the affected product and reachable code path exist in your environment.
- Apply the vendor-supported patch or mitigation from the primary advisory.
- Rescan the exact deployed revision and retain verification evidence.
Evidence coverage
- SSVC priority
- MEDIUM
- Confidence
- Not available
- Aliases
- None reported
Scores appear only when corresponding evidence exists. Missing data is never interpreted as zero risk.
Sources and record history
- GitHub advisory ↗
- Patch commit ↗
- Patch commit ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
- access.redhat.com ↗
Record history
Published Apr 15, 2026 · Last refreshed Nov 3, 2026