Code Injection in PyTorch - CVE-2022-45907

 

Code Injection in PyTorch - CVE-2022-45907

Published: January 29, 2024 / Updated: August 13, 2024


Vulnerability identifier: #VU85872
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-45907
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation within the torch.jit.annotations.parse_type_line() function. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PyTorch
Python for Scientific Computing
IBM Watson Machine Learning Accelerator
Watson Studio on Cloud Pak for Data
Robotic Process Automation for Cloud Pak
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
IBM Watson Machine Learning on CP4D
App Connect Enterprise Certified Container
IBM Maximo Application Suite

How to mitigate CVE-2022-45907

Install updates from vendor's website.

Python for Scientific Computing - update to 4.2.1
IBM Watson Machine Learning Accelerator - update to 4.0
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 4.7
IBM Watson Machine Learning on CP4D - update to 4.8
Watson Studio on Cloud Pak for Data - update to 4.8.0
App Connect Enterprise Certified Container - addressed in versions 5.0.3, 7.1.0
IBM Maximo Application Suite - addressed in versions 8.9.4, 8.10
Robotic Process Automation for Cloud Pak - addressed in versions 21.0.7.2, 23.0.2

External References

Related Security Bulletins