UNIX symbolic link following in Cargo - CVE-2022-36113

 

UNIX symbolic link following in Cargo - CVE-2022-36113

Published: September 28, 2022


Vulnerability identifier: #VU67717
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-36113
CWE-ID: CWE-61
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: The Rust Programming Language
Affected software:
Cargo

Detailed vulnerability description

The vulnerability allows a remote attacker to corrupt arbitrary files on the system.

The vulnerability exists due to a symlink following issue. A remote attacker can add a malicious ".cargo-ok" symbolic link into the package, point the link to an arbitrary file on the system and corrupt it during package extraction.


How to mitigate CVE-2022-36113

Install updates from vendor's website.

Sources