Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2022-36113

Опубликовано: 14 сент. 2022
Источник: nvd
CVSS3: 4.6
CVSS3: 8.1
EPSS Низкий

Описание

Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source code in the ~/.cargo folder on disk, making it available to the Rust projects it builds. To record when an extraction is successful, Cargo writes "ok" to the .cargo-ok file at the root of the extracted source code once it extracted all the files. It was discovered that Cargo allowed packages to contain a .cargo-ok symbolic link, which Cargo would extract. Then, when Cargo attempted to write "ok" into .cargo-ok, it would actually replace the first two bytes of the file the symlink pointed to with ok. This would allow an attacker to corrupt one file on the machine using Cargo to extract the package. Note that by design Cargo allows code execution at build time, due to build scripts and procedural macros. The vulnerabilities in this advisory allow performing a subset of the possible damage in a harder to track down way. Your dependencies must still be trusted if you want

Уязвимые конфигурации

Конфигурация 1
cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
Версия до 0.65.0 (исключая)

EPSS

Процентиль: 87%
0.0346
Низкий

4.6 Medium

CVSS3

8.1 High

CVSS3

Дефекты

CWE-22
CWE-59

Связанные уязвимости

CVSS3: 4.6
ubuntu
больше 3 лет назад

Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source code in the ~/.cargo folder on disk, making it available to the Rust projects it builds. To record when an extraction is successful, Cargo writes "ok" to the .cargo-ok file at the root of the extracted source code once it extracted all the files. It was discovered that Cargo allowed packages to contain a .cargo-ok symbolic link, which Cargo would extract. Then, when Cargo attempted to write "ok" into .cargo-ok, it would actually replace the first two bytes of the file the symlink pointed to with ok. This would allow an attacker to corrupt one file on the machine using Cargo to extract the package. Note that by design Cargo allows code execution at build time, due to build scripts and procedural macros. The vulnerabilities in this advisory allow performing a subset of the possible damage in a harder to track down way. Your dependencies must still be trusted if you wa...

CVSS3: 4.6
msrc
5 месяцев назад

Extracting malicious crates can corrupt arbitrary files

CVSS3: 4.6
debian
больше 3 лет назад

Cargo is a package manager for the rust programming language. After a ...

CVSS3: 3.9
github
больше 3 лет назад

Cargo extracting malicious crates can corrupt arbitrary files

suse-cvrf
больше 3 лет назад

Security update for rust1.62

EPSS

Процентиль: 87%
0.0346
Низкий

4.6 Medium

CVSS3

8.1 High

CVSS3

Дефекты

CWE-22
CWE-59