Advisory

GHSA-wrfc-pvp9-mr9g

Also known as: CVE-2024-11393, PYSEC-2024-228

Summary

Deserialization of Untrusted Data in Hugging Face Transformers

Details

Hugging Face Transformers MaskFormer Model 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 model files. 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 user. Was ZDI-CAN-25191.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-23 03:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

transformers

PyPI · All systems

Affected

  • introduced 0, fixed 4.48.0 (ecosystem)

Fixed versions

4.48.0

Fix

  • Fixed version 4.48.0
    pip install --upgrade transformers==4.48.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences