ZDS-2025-0127MEDIUM6.8CWE-94DISCLOSEDdisclosed 2025-03-18

Custom code in modeling_*.py auto-executed on trust_remote_code

/summary

Summary

Arbitrary Python in the modeling module exfiltrates HF_TOKEN environment variable on first import.

/poc

Proof-of-concept

# Reproduction steps redacted under coordinated disclosure.
# Full PoC will be published with the advisory at embargo expiry.

$ zds reproduce ZDS-2025-0127
ZDS-2025-0127 — Custom code in modeling_*.py auto-executed on trust_remote_code · ZeroDayShield