Security vulnerability reported by @hackchang on ptf v2 beta code:
_BasePtForecasterV2(ckpt_path=...) auto-loads sidecar config files (model_cfg.pkl / datamodule_cfg.pkl / metadata.pkl) from the checkpoint dir via pickle.
load (base/_base_pkg.py:89,108) unconditionally (torch-independent), so loading a shared checkpoint dir = code execution.
PoC attached (benign marker).
CWE-502, CVSS ~8.4. Fix: JSON / restrict-unpickle the sidecar configs.
Security vulnerability reported by @hackchang on ptf v2 beta code:
_BasePtForecasterV2(ckpt_path=...) auto-loads sidecar config files (model_cfg.pkl / datamodule_cfg.pkl / metadata.pkl) from the checkpoint dir via pickle.
load (base/_base_pkg.py:89,108) unconditionally (torch-independent), so loading a shared checkpoint dir = code execution.
PoC attached (benign marker).
CWE-502, CVSS ~8.4. Fix: JSON / restrict-unpickle the sidecar configs.