Skip to content
CriticalVulnerability

CVE-2022-45907: PyTorch arbitrary code execution through parse_type_line type annotation parsing

Identifier
CVE-2022-45907
Published
Record updated
View JSON
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.