p PatchFirst

CVE-2026-136427

CVE-2026-136427 · PyTorch Foundation PyTorch AOTIModelPackageLoader Command Injection Remote Code Execution Vulnerability

CVSS 7.8 · High · EPSS 0.7%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pytorch"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

PyTorch Foundation PyTorch AOTIModelPackageLoader Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

The specific flaw exists within the AOTIModelPackageLoader. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-32262.

Published
Updated

Stack: system

Affected products and versions

  • pytorch

    Versions
    • 2.12.1: Affected

    No fix published

  • pytorch Debian 12

    Versions
    • 1.13.1+dfsg-4
    • 1.13.1+dfsg-5
    • 2.0.1+dfsg-1
    • 2.0.1+dfsg-1~exp1
    • 2.0.1+dfsg-2
    • 2.0.1+dfsg-4
    All versions (42)
    • 2.0.1+dfsg-5
    • 2.1.2+dfsg-1
    • 2.1.2+dfsg-2
    • 2.1.2+dfsg-4
    • 2.12.0+dfsg2-1
    • 2.12.0+dfsg2-1~exp1
    • 2.12.0+dfsg2-1~exp2
    • 2.12.0+dfsg2-2
    • 2.12.0+dfsg2-3
    • 2.12.0+dfsg2-4
    • 2.12.1+dfsg-1
    • 2.12.1+dfsg-2
    • 2.14.1+dfsg-1
    • 2.14.1+dfsg-1~exp1
    • 2.15.0+dfsg-1~exp1
    • 2.4.1-1
    • 2.4.1-3
    • 2.4.1-4
    • 2.5.0+dfsg-1
    • 2.5.1+dfsg-1
    • 2.5.1+dfsg-3
    • 2.5.1+dfsg-4
    • 2.6.0+dfsg-1
    • 2.6.0+dfsg-1~exp1
    • 2.6.0+dfsg-2
    • 2.6.0+dfsg-3
    • 2.6.0+dfsg-4
    • 2.6.0+dfsg-5
    • 2.6.0+dfsg-7
    • 2.6.0+dfsg-8
    • 2.6.0+dfsg-9
    • 2.6.0~rc9+dfsg-1~exp1
    • 2.9.0+dfsg-1~exp1
    • 2.9.0+dfsg-1~exp2
    • 2.9.1+dfsg-1~exp1
    • 2.9.1+dfsg-1~exp2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pytorch Debian 13

    Versions
    • 2.12.0+dfsg2-1
    • 2.12.0+dfsg2-1~exp1
    • 2.12.0+dfsg2-1~exp2
    • 2.12.0+dfsg2-2
    • 2.12.0+dfsg2-3
    • 2.12.0+dfsg2-4
    All versions (18)
    • 2.12.1+dfsg-1
    • 2.12.1+dfsg-2
    • 2.14.1+dfsg-1
    • 2.14.1+dfsg-1~exp1
    • 2.15.0+dfsg-1~exp1
    • 2.6.0+dfsg-7
    • 2.6.0+dfsg-8
    • 2.6.0+dfsg-9
    • 2.9.0+dfsg-1~exp1
    • 2.9.0+dfsg-1~exp2
    • 2.9.1+dfsg-1~exp1
    • 2.9.1+dfsg-1~exp2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pytorch Debian 14

    Versions
    • 2.12.0+dfsg2-1
    • 2.12.0+dfsg2-1~exp1
    • 2.12.0+dfsg2-1~exp2
    • 2.12.0+dfsg2-2
    • 2.12.0+dfsg2-3
    • 2.12.0+dfsg2-4
    All versions (18)
    • 2.12.1+dfsg-1
    • 2.12.1+dfsg-2
    • 2.14.1+dfsg-1
    • 2.14.1+dfsg-1~exp1
    • 2.15.0+dfsg-1~exp1
    • 2.6.0+dfsg-7
    • 2.6.0+dfsg-8
    • 2.6.0+dfsg-9
    • 2.9.0+dfsg-1~exp1
    • 2.9.0+dfsg-1~exp2
    • 2.9.1+dfsg-1~exp1
    • 2.9.1+dfsg-1~exp2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pytorch Ubuntu 22.04 LTS

    Versions
    • 1.7.1-7
    • 1.8.1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pytorch Ubuntu 26.10

    Versions
    • 2.9.1+dfsg-1~exp1ubuntu2
    • 2.12.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • pytorch Ubuntu 26.04 LTS

    Versions
    • 2.6.0+dfsg-7
    • 2.6.0+dfsg-9
    • 2.9.1+dfsg-1~exp1ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →