CVE-2024-14041

Source
https://cve.org/CVERecord?id=CVE-2024-14041
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-14041.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-14041
Downstream
Published
2026-07-28T08:05:35.310Z
Modified
2026-07-29T08:20:22.721060Z
Severity
  • 8.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/U:Amber CVSS Calculator
Summary
ML-KEM (Kyber) decapsulation leaks private key information through non-constant-time division in message decoding and ciphertext compression (KyberSlash)
Details

In Bouncy Castle for Java from 1.73 to before 1.78, three ML-KEM (CRYSTALS-Kyber) routines divided secret-derived polynomial coefficients by the modulus q: Poly.toMsg, which decodes the decrypted message, and the ciphertext compression routines Poly.compressPoly and PolyVec.compressPolyVec. An attacker able to measure the timing of a large number of decapsulations performed with the same long-term private key can recover that key. These are the KyberSlash1 (Poly.toMsg) and KyberSlash2 (ciphertext compression) divisions. Compression performed during encapsulation operates on values that become the public ciphertext and is not affected.

Database specific
{
    "cna_assigner": "bcorg",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/14xxx/CVE-2024-14041.json",
    "cwe_ids": [
        "CWE-208"
    ]
}
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.73"
        },
        {
            "fixed": "1.78"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

Other
r1rv73
r1rv74
r1rv75
r1rv76
r1rv77

Database specific

vanir_signatures_modified
"2026-07-29T08:20:22Z"
vanir_signatures
[
    {
        "target": {
            "function": "checkCreation3",
            "file": "prov/src/test/jdk1.1/org/bouncycastle/jce/provider/test/CertTest.java"
        },
        "id": "CVE-2024-14041-59a1653a",
        "digest": {
            "function_hash": "211490410986357392843513459334772224186",
            "length": 4101.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/bcgit/bc-java/commit/30c6cc60ef5aa9062a083a8cea3e5c4f96d91a2a"
    },
    {
        "target": {
            "file": "core/src/main/jdk1.1/org/bouncycastle/util/BigIntegers.java"
        },
        "id": "CVE-2024-14041-8f72cc80",
        "digest": {
            "line_hashes": [
                "300603618156872282375712415734111285725",
                "276034351500733570581841163074868711431",
                "77770816554066311444805528877586846264"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/30c6cc60ef5aa9062a083a8cea3e5c4f96d91a2a"
    },
    {
        "target": {
            "file": "prov/src/test/jdk1.1/org/bouncycastle/jce/provider/test/CertTest.java"
        },
        "id": "CVE-2024-14041-b4a175c2",
        "digest": {
            "line_hashes": [
                "170389307891483721281926286472113815870",
                "73724035249486516467607034760695252714",
                "260917414265667472255462271410390583015",
                "193327030186129717743495799486333488757",
                "236831945343289876206774171157129303395",
                "230929008786997747382832711614224342277",
                "199832741301999372182660746343191085795"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/bcgit/bc-java/commit/30c6cc60ef5aa9062a083a8cea3e5c4f96d91a2a"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-14041.json"