{"id":"CVE-2025-14813","aliases":["GHSA-574f-3g2m-x479"],"url":"https://o3.security/vulnerability/CVE-2025-14813","summary":"GOSTCTR implementation unable to process more than 255 blocks correctly","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).","published":"2026-04-15T08:56:34.057Z","modified":"2026-09-20T14:24:38.209574Z","cvss":null,"epss":{"score":0.00313,"percentile":0.23467,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk18on","fixedVersion":"1.80.2"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk18on","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-jdk18on","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-debug-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-debug-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-ext-debug-jdk18on","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk18on","fixedVersion":"1.81.1"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk14","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk15to18","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk18on","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk14","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk15to18","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk18on","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk14","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk15to18","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk18on","fixedVersion":"1.84"},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-debug-jdk15on","fixedVersion":null},{"ecosystem":"Maven","name":"org.bouncycastle:bcprov-jdk15on","fixedVersion":null}],"fix":{"url":"https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3","label":"bcgit/bc-java@701686c"},"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:11720"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:11721"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:13631"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:14272"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:14276"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:17668"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:18054"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:18055"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:18059"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:21772"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:24977"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53644"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53645"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:53646"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60239"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60246"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60247"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60248"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60249"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60250"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60251"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60252"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60254"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60256"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:60259"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:66488"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-14813"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14813.json"},{"type":"ADVISORY","url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14813"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2458640"},{"type":"FIX","url":"https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3"},{"type":"FIX","url":"https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-java"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:53806"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-20T14:24:38.209574Z"}}