Vulnerability · Published Feb 4, 2024 · Assigned by fedora

CVE-2021-4435Yarn: untrusted search path

High 7.7

In plain English

A high-severity security flaw in Extra Packages for Enterprise Linux from Fedora. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.3%top 77.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-yarnpkg1.22.19+~cs24.27.18-1DEBIAN-CVE-2021-4435
Debian:13node-yarnpkg1.22.19+~cs24.27.18-1DEBIAN-CVE-2021-4435
Debian:14node-yarnpkg1.22.19+~cs24.27.18-1DEBIAN-CVE-2021-4435
Ubuntu:22.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2021-4435
Ubuntu:24.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2021-4435
Ubuntu:25.10node-yarnpkgno fix listedUBUNTU-CVE-2021-4435
Ubuntu:26.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2021-4435
Ubuntu:26.10node-yarnpkgno fix listedUBUNTU-CVE-2021-4435
npmyarn1.22.13GHSA-mpwj-fcr6-x34c

Affected products (as reported)

VendorProductVersions
n/a yarn see references
Fedora Fedora see references
Fedora Extra Packages for Enterprise Linux see references

Weakness: CWE-426 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

References