Advisory

PYSEC-2022-43015

Also known as: BIT-pytorch-2022-45907, CVE-2022-45907, GHSA-47fc-vmwq-366v

Summary

The record has no summary.

Details

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

Severity

Not rated by the source.

Dates

Published
2022-11-26 02:15 UTC
Modified
2026-06-10 17:51 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, fixed 1.13.1 (ecosystem)

Fixed versions

1.13.1

Fix

  • Fixed version 1.13.1
    pip install --upgrade torch==1.13.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences