Description
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pytorch | 1.13.1+dfsg-1 | — |
| Debian 13 | pytorch | 1.13.1+dfsg-1 | — |
| Debian 12 | pytorch | 1.13.1+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pytorch | No fix yet | — |
| Ubuntu 26.04 LTS | pytorch | No fix yet | — |
| Ubuntu 25.10 | pytorch | No fix yet | — |
| Ubuntu 22.04 LTS | pytorch | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | torch | < 1.13.1 | 1.13.1 | GHSA-47fc-vmwq-366v |
Advisories 1
- WID-SEC-2024-0429 IBM App Connect Enterprise: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Feb 19, 2024