Browse / Unsafe Model Loading and Supply Chain / CVE-2023-7018
transformers has a Deserialization of Untrusted Data vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Unsafe deserialisation
- Affected
- transformers (PyPI)
- CVSS
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.7% chance of exploitation in 30 days
How it works, in short
Transformers releases before 4.36 deserialise untrusted data without adequate safeguards, so loading a crafted model artifact can create attacker-chosen objects. (Our summary, written by a model. The source text is below.)
Details
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-7018
- https://github.com/huggingface/transformers/commit/1d63b0ec361e7a38f1339385e8a5a855085532ce
- https://github.com/huggingface/transformers
- https://github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2023-301.yaml
- https://huntr.com/bounties/e1a3e548-e53a-48df-b708-9ee62140963c
Source: GitHub Advisory Database, used under CC BY 4.0.