CVE-2025-9231

Source
https://cve.org/CVERecord?id=CVE-2025-9231
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-9231.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-9231
Downstream
Related
Published
2025-09-30T13:17:12.007Z
Modified
2026-06-18T17:54:12.247268Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
Timing side-channel in SM2 algorithm on 64 bit ARM
Details

Issue summary: A timing side-channel which could potentially allow remote recovery of the private key exists in the SM2 algorithm implementation on 64 bit ARM platforms.

Impact summary: A timing side-channel in SM2 signature computations on 64 bit ARM platforms could allow recovering the private key by an attacker..

While remote key recovery over a network was not attempted by the reporter, timing measurements revealed a timing signal which may allow such an attack.

OpenSSL does not directly support certificates with SM2 keys in TLS, and so this CVE is not relevant in most TLS contexts. However, given that it is possible to add support for such certificates via a custom provider, coupled with the fact that in such a custom provider context the private key may be recoverable via remote timing measurements, we consider this to be a Moderate severity issue.

The FIPS modules in 3.5, 3.4, 3.3, 3.2, 3.1 and 3.0 are not affected by this issue, as SM2 is not an approved algorithm.

Database specific
{
    "cna_assigner": "openssl",
    "cwe_ids": [
        "CWE-385"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9231.json"
}
References

Affected packages

Git / github.com/openssl/openssl

Affected ranges

Type
GIT
Repo
https://github.com/openssl/openssl
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "3.5.0"
        },
        {
            "fixed": "3.5.4"
        },
        {
            "introduced": "3.4.0"
        },
        {
            "fixed": "3.4.3"
        },
        {
            "introduced": "3.3.0"
        },
        {
            "fixed": "3.3.5"
        },
        {
            "introduced": "3.2.0"
        },
        {
            "fixed": "3.2.6"
        }
    ]
}

Affected versions

openssl-3.*
openssl-3.2.0
openssl-3.2.1
openssl-3.2.2
openssl-3.2.3
openssl-3.2.4
openssl-3.2.5
openssl-3.3.0
openssl-3.3.1
openssl-3.3.2
openssl-3.3.3
openssl-3.3.4
openssl-3.4.0
openssl-3.4.1
openssl-3.4.2
openssl-3.5.0
openssl-3.5.1
openssl-3.5.2
openssl-3.5.3

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/eed5adc9f969d77c94f213767acbb41ff923b6f4",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c",
            "function": "EC_GFp_sm2p256_method"
        },
        "id": "CVE-2025-9231-0a173897",
        "digest": {
            "function_hash": "228975674964673153327344367611195603813",
            "length": 1413.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/fc47a2ec078912b3e914fab5734535e76c4820c2",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c"
        },
        "id": "CVE-2025-9231-1c441952",
        "digest": {
            "line_hashes": [
                "246421341653923193586783108578436995594",
                "165531523737299840919921065590355522697",
                "18229344054124728427593867306425443651",
                "24266715163726303181486152260821359716",
                "7395405381188139375821676029670613492",
                "45412430000582672495337306435173847003",
                "235876622437882869915650874338137663887",
                "235876622437882869915650874338137663887",
                "186708629684641006598401669327723483366",
                "263307798859667681852006462056982872272",
                "204829054929762304879144137237214260511",
                "228312666475207087463597735904232822597"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/cba616c26ac8e7b37de5e77762e505ba5ca51698",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c",
            "function": "EC_GFp_sm2p256_method"
        },
        "id": "CVE-2025-9231-9e687c2e",
        "digest": {
            "function_hash": "228975674964673153327344367611195603813",
            "length": 1413.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/567f64386e43683888212226824b6a179885a0fe",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c",
            "function": "EC_GFp_sm2p256_method"
        },
        "id": "CVE-2025-9231-c06aeee8",
        "digest": {
            "function_hash": "228975674964673153327344367611195603813",
            "length": 1413.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/eed5adc9f969d77c94f213767acbb41ff923b6f4",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c"
        },
        "id": "CVE-2025-9231-cea2ed68",
        "digest": {
            "line_hashes": [
                "246421341653923193586783108578436995594",
                "165531523737299840919921065590355522697",
                "18229344054124728427593867306425443651",
                "24266715163726303181486152260821359716",
                "7395405381188139375821676029670613492",
                "45412430000582672495337306435173847003",
                "235876622437882869915650874338137663887",
                "235876622437882869915650874338137663887",
                "186708629684641006598401669327723483366",
                "263307798859667681852006462056982872272",
                "204829054929762304879144137237214260511",
                "228312666475207087463597735904232822597"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/fc47a2ec078912b3e914fab5734535e76c4820c2",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c",
            "function": "EC_GFp_sm2p256_method"
        },
        "id": "CVE-2025-9231-e50bd482",
        "digest": {
            "function_hash": "228975674964673153327344367611195603813",
            "length": 1413.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/cba616c26ac8e7b37de5e77762e505ba5ca51698",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c"
        },
        "id": "CVE-2025-9231-e65977eb",
        "digest": {
            "line_hashes": [
                "246421341653923193586783108578436995594",
                "165531523737299840919921065590355522697",
                "18229344054124728427593867306425443651",
                "24266715163726303181486152260821359716",
                "7395405381188139375821676029670613492",
                "45412430000582672495337306435173847003",
                "235876622437882869915650874338137663887",
                "235876622437882869915650874338137663887",
                "186708629684641006598401669327723483366",
                "263307798859667681852006462056982872272",
                "204829054929762304879144137237214260511",
                "228312666475207087463597735904232822597"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/openssl/openssl/commit/567f64386e43683888212226824b6a179885a0fe",
        "target": {
            "file": "crypto/ec/ecp_sm2p256.c"
        },
        "id": "CVE-2025-9231-f8a11680",
        "digest": {
            "line_hashes": [
                "246421341653923193586783108578436995594",
                "165531523737299840919921065590355522697",
                "18229344054124728427593867306425443651",
                "24266715163726303181486152260821359716",
                "7395405381188139375821676029670613492",
                "45412430000582672495337306435173847003",
                "235876622437882869915650874338137663887",
                "235876622437882869915650874338137663887",
                "186708629684641006598401669327723483366",
                "263307798859667681852006462056982872272",
                "204829054929762304879144137237214260511",
                "228312666475207087463597735904232822597"
            ],
            "threshold": 0.9
        },
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-9231.json"
vanir_signatures_modified
"2026-06-18T17:54:12Z"