Skip to content

PyTorch vulnerable to arbitrary code execution

Critical severity GitHub Reviewed Published Nov 26, 2022 to the GitHub Advisory Database • Updated Jan 30, 2023

Package

pip torch (pip)

Affected versions

<= 1.13.0

Patched versions

1.13.1

Description

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely. The fix for this issue is available in version 1.13.1. There is a release checker in issue #89855.

References

Published by the National Vulnerability Database Nov 26, 2022
Published to the GitHub Advisory Database Nov 26, 2022
Reviewed Dec 2, 2022
Last updated Jan 30, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2022-45907

GHSA ID

GHSA-47fc-vmwq-366v

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.