Advisory

GHSA-v5jw-96jm-7h2c

Details, part 2 of 2. The advisory

Details

If legacy NumPy-containing pretrain files must be supported, use PyTorch's add_safe_globals() API to allowlist the specific NumPy dtypes required, rather than disabling all safety checks. Apply the same fix to all six affected loaders listed above.

Sources & licences