High severity · published Dec 20, 2023
CVE-2023-7018
Deserialization of Untrusted Data in huggingface/transformers
7.8
CVSS
0.7%
EPSS
No
On KEV
Description
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HU
huggingface/transformers · huggingface
before 4.36 · source: vendor
TR
Transformers · Huggingface
before 4.36.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-7018
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-7018
Patch
https://github.com/huggingface/transformers/commit/1d63b0ec361e7a38f1339385e8a5a855085532ce
Exploit
https://huntr.com/bounties/e1a3e548-e53a-48df-b708-9ee62140963c
More from huggingface/transformers
9.6
CVE-2026-5241
Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers
9.6
CVE-2024-3568
Arbitrary Code Execution via Deserialization in huggingface/transformers
8.8
CVE-2023-6730
Deserialization of Untrusted Data in huggingface/transformers
7.8
CVE-2026-4372
Arbitrary Remote Code Execution via `_attn_implementation_internal` Config Injection in huggingface/transformers
7.8
CVE-2026-1839
Arbitrary Code Execution via Unsafe torch.load() in Trainer Checkpoint Loading in huggingface/transformers
