Views
No views yet
safe_globals cross-thread weights_only=True bypass PoCtorch.serialization.safe_globals(...) API.torch.load(..., weights_only=True) blocks an attacker-controlled custom class by default.with torch.serialization.safe_globals([DangerousState]): open for a trusted load, an unrelated thread can load the same class without opting into safe_globals.__setstate__ during deserialization, proving code execution in that shared worker process.add_safe_globals(), which is already an explicit process-wide opt-in.pt load path is unsafe by defaulttorch-2.13.0+cpu wheelpython3 poc_safe_globals_thread_leak.py