Advisory Details

December 18th, 2025

(0Day) Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability

ZDI-25-1148
ZDI-CAN-28252

CVE ID CVE-2025-14927
CVSS SCORE 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS Hugging Face
AFFECTED PRODUCTS Transformers
VULNERABILITY DETAILS

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.

ADDITIONAL DETAILS

10/14/25 - ZDI submitted the report to a third-party bug bounty program
11/11/25 – ZDI asked for updates
11/12/25 – the vendor rejected the report and closed the case
12/12/25 – ZDI notified the vendor of the intention to publish the case as a 0-day advisory on 12/18/25

-- Mitigation: Given the nature of the vulnerability, the only salient mitigation strategy is to restrict interaction with the product


DISCLOSURE TIMELINE
  • 2025-10-14 - Vulnerability reported to vendor
  • 2025-12-18 - Coordinated public release of advisory
  • 2025-12-18 - Advisory Updated
CREDIT Peter Girnus (@gothburz), Brandon Niemczyk of Trend Zero Day Initiative
BACK TO ADVISORIES