Skip to content

[BUG] unsafe unpickling in v2 beta code - reported by @hackchang #2380

Description

@fkiraly

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions