7.8
HIGH CVSS 3.1
CVE-2021-4435
Yarn Untrusted Search Path Code Execution Vulnerability
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.

INFO

Published Date :

Feb. 4, 2024, 8:15 p.m.

Last Modified :

Nov. 21, 2024, 6:37 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2021-4435 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Yarnpkg yarn
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH [email protected]
Solution
This information is provided by the 3rd party feeds.
  • There is no known solution at this time.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-4435 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-4435 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-4435 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-4435 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/security/cve/CVE-2021-4435
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2262284
    Added Reference https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
    Added Reference https://github.com/yarnpkg/yarn/releases/tag/v1.22.13
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Feb. 13, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://access.redhat.com/security/cve/CVE-2021-4435 No Types Assigned https://access.redhat.com/security/cve/CVE-2021-4435 Third Party Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2262284 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=2262284 Issue Tracking
    Changed Reference Type https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 No Types Assigned https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 Patch
    Changed Reference Type https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 No Types Assigned https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 Release Notes
    Added CWE NIST CWE-426
    Added CPE Configuration OR *cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:* versions up to (excluding) 1.22.13
  • CVE Received by [email protected]

    Feb. 04, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Fedora Project https://access.redhat.com/security/cve/CVE-2021-4435 [No types assigned]
    Added Reference Fedora Project https://bugzilla.redhat.com/show_bug.cgi?id=2262284 [No types assigned]
    Added Reference Fedora Project https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 [No types assigned]
    Added Reference Fedora Project https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 [No types assigned]
    Added CWE Fedora Project CWE-426
    Added CVSS V3.1 Fedora Project AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.04 }} 0.00%

score

0.10732

percentile