CVE-2025-14924

Source
https://cve.org/CVERecord?id=CVE-2025-14924
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14924.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-14924
Aliases
Published
2025-12-23T21:04:40.830Z
Modified
2026-07-08T07:59:29.596570244Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability
Details

Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of checkpoints. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-27984.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "95faabf0a6cd845f4c5548697e288a79e424b096"
                },
                {
                    "last_affected": "95faabf0a6cd845f4c5548697e288a79e424b096"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14924.json",
    "cna_assigner": "zdi",
    "cwe_ids": [
        "CWE-502"
    ]
}
References

Affected packages

Git / github.com/huggingface/transformers

Affected ranges

Type
GIT
Repo
https://github.com/huggingface/transformers
Events
Database specific
{
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:huggingface:transformers:4.55.0:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "4.55.0"
        },
        {
            "last_affected": "4.55.0"
        }
    ]
}

Affected versions

4.*
4.55.0
v4.*
v4.55.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14924.json"