CVE Explorer
CVE-2026-31219
The _load_model() function in the neural_magic_training.py script of the optimate project in commit a6d302f912b481c94370811af6b11402f51d377f (2024-07-21) is vulnerable to insecure deserialization (CWE-502). When a user provides a single model file path (e.g., .pt or .pth) via the --model command-line argument, the function loads the file using torch.load() without enabling the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects through the Pickle mod
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://github.com/nebuly-ai/optimate"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/cna/references/0
{"url":"https://www.notion.so/CVE-2026-31219-35d1e139318881c8a629ec19671e74c3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6265f4494c7155069b560e3262721df0de5c2fed6abf6f759c7d2e92db666d8d · sha256:0b84bcef2fdd795f… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.