Security mailing lists by PureSourceCode

CVE-2022-45907

CRITICAL 9.8CVSS 3.1

PyTorch vulnerable to arbitrary code execution

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.

Published
26 Nov 2022
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-77CWE-94
Also known as
BIT-pytorch-2022-45907GHSA-47fc-vmwq-366vPYSEC-2022-43015
Sources
NVDJSONOSV GHSA-47fc-vmwq-366vJSONOSV PYSEC-2022-43015JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation pytorch
cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*
< 1.13.1 1.13.1
OSV PyPI torch < 1.13.1 1.13.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Nov 2022)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Nov 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Nov 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.