Skip to content
Heist/ feed
Back to feed
High

Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability

Type: advisorySources: OSV

Hugging Face Transformers SEW-D 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-28252.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-14927
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:14 UTC · Revision 1

Source evidence

Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability

core-osv · Original source

Published 23 Dec 2025, 21:04 UTC

Hugging Face Transformers SEW-D 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-28252.

osv:CVE-2025-14927
Complete source record
{
  "id": "738d8cc7e3bc29caa09387d2cbcd417b52b4ed3703bdacf49cd5ee3dcb5d2988",
  "url": "https://osv.dev/vulnerability/CVE-2025-14927",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability",
    "summary": "Hugging Face Transformers SEW-D 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-28252.",
    "evidence": "osv:CVE-2025-14927",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-14927",
      "aliases": [
        "CVE-2025-14927",
        "PYSEC-2025-215"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/huggingface/transformers",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8ac2b916b042b1f78b75c9eb941c0f5d2cdd8e10"
                },
                {
                  "last_affected": "8ac2b916b042b1f78b75c9eb941c0f5d2cdd8e10"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:huggingface:transformers:4.57.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.57.0"
                      },
                      {
                        "last_affected": "4.57.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.57.0",
            "v4.57.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14927.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.450614624Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14927.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-14927",
        "https://www.zerodayinitiative.com/advisories/ZDI-25-1148/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "zdi",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.57.0"
                  },
                  {
                    "last_affected": "4.57.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14927.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-14927",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492129,
  "published_at": "2025-12-23T21:04:28.008+00:00"
}