Skip to content
MediumNews

Hugging Face Transformers RCE flaw enables stealthy compromise via AI model configs

Published
Record updated
View JSON

Summary

A high severity flaw in Hugging Face Transformers, tracked as CVE-2026-4372, enables remote code execution through a model configuration file. Attackers add an underscore-prefixed field named _attn_implementation_internal to a remote config.json, which bypasses the trust_remote_code=false protection. The flaw affects versions released since 4.56.0 and is silently fixed in 5.3.0, released March 3.

Mitigation

Fixed in Transformers 5.3.0.