Fixes go into the latest 2.x release.
Please do not open a public issue. Use GitHub's private reporting: the Security tab of the repository, then Report a vulnerability (https://github.com/EDF-Lab/GEARS/security/advisories/new). Say which version you use, what you did, and what happened. A maintainer will answer there.
GEARS saves a fitted model with joblib, which is pickle: opening a model file can run arbitrary code.
load_pretrained(model_id)downloads a published model and checks its SHA-256 against the value ingears/pretrained.pybefore opening it (no model is published with 2.0.0). The same check applies when you passpath=. Once models are published, the checksum of each release file is also inSHA256SUMSon the release page.EVSessionModel.load(path)andGEARSModel.load(path)open the file you give them without any check. Open only files you saved yourself or got from a source you trust, and compare theirsha256sumwith the published one.import gearsdoes not touch the network or the disk. The only download isload_pretrained, andGEARS_OFFLINE=1forbids it.
GEARS ships no data.