# CVE-2024-11392: Hugging Face Transformers deserialization of untrusted data in config handling

Source: https://junglewise.ai/threats/cve-2024-11392-hugging-face-transformers-deserialization-of-untrusted-data-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-11-23. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2024-11392 · Severity: high · CVSS 7.5 · Published 2024-11-23

Hugging Face Transformers is a widely-used machine learning library for NLP and computer vision tasks. A deserialization flaw in the handling of configuration files allows remote code execution if a user opens a malicious model file or visits a crafted webpage. This gives attackers complete control over the user's system and any data the application can access.

Technologies: [Hugging Face Transformers](https://junglewise.ai/threats/technologies/transformers), [transformers (PyPI)](https://junglewise.ai/threats/technologies/pypi-transformers). Vendors: [Hugging Face](https://junglewise.ai/threats/vendors/hugging-face), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-11392 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-11392 being exploited in the wild.

**How severe is CVE-2024-11392?** High severity, with a CVSS score of 7.5, published 23 November 2024.

**Which products and versions are affected?** Hugging Face Transformers < 4.48.0; transformers (PyPI) ECOSYSTEM:introduced=0,fixed=4.48.0.

**Is there a fix for CVE-2024-11392?** Yes. transformers (PyPI): upgrade to 4.48.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-11392 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-11392?** Check whether you run Hugging Face Transformers or transformers (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- transformers (PyPI): upgrade to 4.48.0 or later

  ```sh
  pip install "transformers>=4.48.0"
  ```


## Technical details

This vulnerability exists in the MobileViTV2 configuration file handling within Hugging Face Transformers. The root cause is insufficient validation of user-supplied data during deserialization, which allows untrusted serialized objects to be reconstructed without proper integrity checks. The attack vector is network-based with high attack complexity, requiring user interaction—the victim must visit a malicious page or open a malicious model file. Once triggered, an attacker can execute arbitrary code in the context of the current user. The vulnerability affects all versions prior to 4.48.0, which includes the fix. The fix involves removing insecure conversion scripts from release wheels and properly validating configuration data during deserialization.

## Affected products

- Hugging Face Transformers < 4.48.0

## Identifiers

- CVE-2024-11392
- GHSA-qxrp-vhvm-j765
- PYSEC-2024-227

## Timeline

- 2024-11-19: disclosed
- 2024-11-23: patched: Version 4.48.0 released with fix

## References

- [https://www.zerodayinitiative.com/advisories/ZDI-24-1513](https://www.zerodayinitiative.com/advisories/ZDI-24-1513)
- [https://github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2024-227.yaml](https://github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2024-227.yaml)
- [https://github.com/huggingface/transformers/issues/34840](https://github.com/huggingface/transformers/issues/34840)
- [https://github.com/huggingface/transformers/pull/35296](https://github.com/huggingface/transformers/pull/35296)

## Related threats

- [Hugging Face Transformers arbitrary file write via load_custom_generate](https://junglewise.ai/threats/cve-2026-80047-hugging-face-transformers-arbitrary-file-write-via-load-custom)
- [Hugging Face Transformers path traversal in save_pretrained](https://junglewise.ai/threats/cve-2026-9856-hugging-face-transformers-path-traversal-in-save-pretrained)
- [Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer](https://junglewise.ai/threats/cve-2025-6921-hugging-face-transformers-vulnerable-to-regular-expression-denial)
- [PYSEC-2026-1988 - Hugging Face Transformers library has Regular Expression Denial of Service](https://junglewise.ai/threats/cve-2025-6051-hugging-face-transformers-library-has-regular-expression-denial-of)
- [PYSEC-2026-1981 - Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer](https://junglewise.ai/threats/cve-2025-6638-hugging-face-transformers-is-vulnerable-to-redos-through-its)
