Advisory

GHSA-47fc-vmwq-366v

Also known as: BIT-pytorch-2022-45907, CVE-2022-45907, PYSEC-2022-43015

Summary

PyTorch vulnerable to arbitrary code execution

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-11-26 03:30 UTC
Modified
2024-11-13 23:01 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences