CriticalVulnerability
CVE-2022-45907: PyTorch arbitrary code execution through parse_type_line type annotation parsing
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2022-45907
- Published
- Record updated
- Affected
- torch <= 1.13.0
- Fixed in
- 1.13.1
- released December 15, 2022, 19 days after disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.3%
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').
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- torchPyPINo LLM dependency detected · 200 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online