GHSA-574f-3g2m-x479

    Dashboard / Vulnerabilities / GHSA-574f-3g2m-x479

    GHSA-574f-3g2m-x479

    Published: 17 Apr 2026Last Modified: 10 Sept 2026

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

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

    Affected packages

    Package

    Name: org.bouncycastle:bcprov-jdk14

    Purl: pkg:maven/org.bouncycastle/bcprov-jdk14

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 1.59
    Fixed -None

    Affected versions

    1.59

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High