CVE-2025-14926

Source
https://cve.org/CVERecord?id=CVE-2025-14926
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14926.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-14926
Aliases
Published
2025-12-23T21:04:32.162Z
Modified
2026-07-08T07:18:45.805772126Z
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 SEW convert_config Code Injection Remote Code Execution Vulnerability
Details

Hugging Face Transformers SEW convert_config Code Injection 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 convert a malicious checkpoint.

The specific flaw exists within the convert_config function. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-28251.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.57.0"
                },
                {
                    "last_affected": "4.57.0"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14926.json",
    "cna_assigner": "zdi",
    "cwe_ids": [
        "CWE-94"
    ]
}
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.57.0:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "4.57.0"
        },
        {
            "last_affected": "4.57.0"
        }
    ]
}

Affected versions

4.*
4.57.0
v4.*
v4.57.0

Database specific

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