CVE-2025-14813

Source
https://cve.org/CVERecord?id=CVE-2025-14813
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14813.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-14813
Aliases
Downstream
Related
Published
2026-04-15T08:56:34.057Z
Modified
2026-08-08T09:38:17.319345Z
Severity
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/RE:M/U:Red CVSS Calculator
Summary
GOSTCTR implementation unable to process more than 255 blocks correctly
Details

: Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules).

This vulnerability is associated with program files G3413CTRBlockCipher.

This issue affects BC-JAVA: from 1.59 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.

Database specific
{
    "cna_assigner": "bcorg",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14813.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "1.59"
                },
                {
                    "fixed": "1.80.2"
                },
                {
                    "introduced": "1.81"
                },
                {
                    "fixed": "1.81.1"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-327"
    ]
}
References

Affected packages

Git / github.com/bcgit/bc-java

Affected ranges

Type
GIT
Repo
https://github.com/bcgit/bc-java
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "1.82"
        },
        {
            "fixed": "1.84"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

Other
r1rv82
r1rv83

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "262386939091886332078283368458154035620",
                "241903356408364102397713104555431676338",
                "237104995760111515567516545948185958019",
                "260088556733241009645093216339235896362",
                "5279621054392667723777881444889999928",
                "324944887105293821129491217626875010557",
                "270453564589089163720850664440047201843",
                "329322209623640002993202889481694352444",
                "66155707311067247870190037078741720121",
                "161374838074741889965706815960646264073"
            ]
        },
        "id": "CVE-2025-14813-5c2066ec",
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f",
        "target": {
            "file": "core/src/test/java/org/bouncycastle/crypto/test/GOST3412Test.java"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 52.0,
            "function_hash": "135703389312834859365583448199898207812"
        },
        "id": "CVE-2025-14813-b573c35e",
        "signature_type": "Function",
        "source": "https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f",
        "target": {
            "function": "generateCRT",
            "file": "core/src/main/java/org/bouncycastle/crypto/modes/G3413CTRBlockCipher.java"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "300276481577487608390511461847156506634",
                "72522421026871186003987298727235672255",
                "248267566282422170437507320289939179897",
                "138697558518558829764409570695921082925",
                "77795620714087101855215776586887480360",
                "253117628173900454412939023697079452098",
                "208234895684152768712941298085623426170",
                "135859151753741312629440454464083697812",
                "34657907477393269367890762234709985303",
                "162613496227733929556244931463578218449",
                "23508661060569098979606906785804307616",
                "205494679626699834684157133405272565850",
                "270832754347741209623177904078690096985",
                "44411157617046897982588222964373660319",
                "243716333709493041231698108128808029013",
                "287610177451687686823260933424799021201",
                "42582010187046702125651359236594596468",
                "76149004579646775163727134742480470349",
                "211854039433732041274137846380870222224",
                "87129416677021730283748693137420676406",
                "180478707998351201328850126237475280813",
                "335503892522674268647705888493576315498"
            ]
        },
        "id": "CVE-2025-14813-db0baff6",
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f",
        "target": {
            "file": "core/src/main/java/org/bouncycastle/crypto/modes/G3413CTRBlockCipher.java"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 62.0,
            "function_hash": "75074325176343452193019954033376254166"
        },
        "id": "CVE-2025-14813-e313969d",
        "signature_type": "Function",
        "source": "https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f",
        "target": {
            "function": "performTest",
            "file": "core/src/test/java/org/bouncycastle/crypto/test/GOST3412Test.java"
        }
    }
]
vanir_signatures_modified
"2026-08-08T09:38:17Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14813.json"