boxscore/security
CVE · referencelatest edition

Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.

CVE-2026-4372HIGH
huggingface huggingface/transformers — Arbitrary Remote Code Execution via `_attn_implementation_internal` Config Injection in huggingface/transformers
  AV  AC  PR  UI  S  C  I  A   CVSS    EPSS   %ile   KEV
   L   L   N   R  U  H  H  H    7.8   .0048   39.5     —
AFFECTED
  Product                   Versions       Fixed
  huggingface/transformers  unspecified –  —
TIMELINE
  Mar 18  Reserved by @huntr_ai
  May 24  EXPLOIT PUBLISHED — CVE-2026-4372 (huggingface/transformers). Public exploit reference added.
  May 24  Published (CNA: @huntr_ai)
CWE-502, CWE-1066 · CNA: @huntr_ai · CVSS v3.0 · 2 references · NVD status: Analyzed

Description

A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious `config.json` file containing the `_attn_implementation_internal` field set to an attacker-controlled HuggingFace Hub repository ID. When a victim loads this model using the standard `AutoModelForCausalLM.from_pretrained()` API, the library downloads and executes arbitrary Python code from the attacker's repository with the victim's full OS privileges. This issue arises due to unfiltered deserialization of configuration attributes, insufficient sanitization of internal fields, and unsandboxed execution of downloaded kernels. The vulnerability bypasses the `trust_remote_code` security mechanism, is invisible to the victim, and exploits the standard documented usage pattern, making it particularly severe. Users are advised to upgrade to version 5.3.0 or later to mitigate this issue.

Lifecycle

Complete event history — 3 events, chronological
DateEventDetail
March 18, 2026ReservedReserved by @huntr_ai
May 24, 2026EXPLOIT PUBLISHEDEXPLOIT PUBLISHED — CVE-2026-4372 (huggingface/transformers). Public exploit reference added.
May 24, 2026PublishedPublished (CNA: @huntr_ai)

Affected

Affected products and packages — 1 row
VendorProduct / PackageEcosystemVersion introducedFixed
huggingfacehuggingface/transformersunspecified

Weaknesses

CWE-502 · CWE-1066

References (2)

Related

Authoritative record: CVE-2026-4372 at cve.org

Vendors: huggingface

Weaknesses: CWE-502 · CWE-1066

About this page

This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-4372 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.