PT-2023-32836 · Hugging Face · Transformers

Ydshieh

·

Published

2023-12-20

·

Updated

2023-12-30

·

CVE-2023-7018

CVSS v3.1

9.6

Critical

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions huggingface/transformers versions prior to 4.36
Description The issue concerns the deserialization of untrusted data, which can compromise model integrity and potentially lead to remote code execution (RCE). This is particularly relevant when using the TransfoXLTokenizer() function, as it can automatically deserialize untrusted data. The vulnerability allows for malicious code injection, potentially through secondary repositories.
Recommendations For versions prior to 4.36, update to version 4.36 or later to resolve the issue. As a temporary workaround, consider disabling the TransfoXLTokenizer() function until a patch is available. Restrict access to untrusted data to minimize the risk of exploitation.

Exploit

Fix

Deserialization of Untrusted Data

Weakness Enumeration

Related Identifiers

CVE-2023-7018
GHSA-V68G-WM8C-6X7J
PYSEC-2023-301

Affected Products

Transformers