{"data":{"id":"fca25586-7cfa-4066-a551-bb9359d7287d","title":"CVE-2022-45907: In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is…","summary":"CVE-2022-45907 affects PyTorch versions before trunk/89695. In these versions, torch.jit.annotations.parse_type_line uses eval unsafely, which can lead to arbitrary code execution. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').","solution":"The source references a patch commit at https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3 but does not state a fixed version or configuration change in the text itself.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907","publishedAt":"2022-11-26T07:15:10.253Z","cveId":"CVE-2022-45907","cweIds":["CWE-94","CWE-94"],"cvssScore":"9.8","cvssSeverity":"critical","severity":"critical","attackType":["other"],"issueType":"vulnerability","affectedPackages":["torch@<= 1.13.0 (fixed: 1.13.1)"],"affectedPackageNames":["torch"],"affectedPackageRefs":["pypi:torch"],"affectedVendors":[],"affectedVendorsRaw":["PyTorch"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"PyTorch arbitrary code execution through parse_type_line type annotation parsing","headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.01344,"epssCheckedAt":"2026-11-04T06:10:14.546Z","kevDateAdded":null,"advisoryAliases":["GHSA-47fc-vmwq-366v"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T03:57:21.835Z","patchAvailable":true,"disclosureDate":null,"fixReleasedAt":"2022-12-15T20:08:28.818Z","daysToFix":19,"fixCheckedAt":"2026-10-29T21:47:29.480Z","capecIds":["CAPEC-242"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity","availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.95,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"torch","fixedVersion":"1.13.1","matchedVersion":"1.13.1","fixReleasedAt":"2022-12-15T20:08:28.818Z","daysToFix":19,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:47:29.327Z"}]}}