SecurityContext

CVE-2022-45907: PyTorch - Command Injection

  • Cve: CVE-2022-45907
  • Name: PyTorch - Command Injection
  • Description: In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
  • Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
  • Remediation: Update to the latest version of PyTorch where this issue is fixed, or apply patches that remove unsafe eval usage.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01647
  • Epss percentile: 0.77108
  • Assignee: [email protected]
  • Published at: 2022-11-26T02:15:10Z
  • Age in days: 1459
  • Modified at: 2026-06-17T05:10:58Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-45907
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/pytorch/pytorch/issues/88868nvd2022-11-26

References

UrlSourceTags
https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3nvdPatch, Third Party Advisory
https://github.com/pytorch/pytorch/issues/88868nvdExploit, Issue Tracking, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
linuxfoundation:pytorch< 1.13.1nonvd/v1/products/linuxfoundation/pytorch

Projects

RepositoryLink kindsIndexedUrl
pytorch/pytorchcommit, fix, issues, package, pull, releasesyes/v1/repositories/pytorch/pytorch

Index

  • Repositories: 2159
  • Repositories high signal: 1199
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-11-26
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts