{"id":"CVE-2021-4435","state":"PUBLISHED","title":"Yarn: untrusted search path","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.","publishedAt":"2024-02-04T19:16:35.651Z","updatedAt":"2025-06-17T14:29:17.224Z","severity":{"score":7.7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"fedora"},"assigner":"fedora","products":["n/a yarn","Fedora Fedora","Fedora Extra Packages for Enterprise Linux"],"affected":[{"vendor":"n/a","product":"yarn","versions":[{"version":"1.22.13","status":"unaffected"}]},{"vendor":"Fedora","product":"Fedora","packageName":"yarnpkg","defaultStatus":"unaffected","collectionURL":"https://packages.fedoraproject.org/"},{"vendor":"Fedora","product":"Extra Packages for Enterprise Linux","packageName":"yarnpkg","defaultStatus":"unaffected","collectionURL":"https://packages.fedoraproject.org/"}],"references":["https://access.redhat.com/security/cve/CVE-2021-4435","https://bugzilla.redhat.com/show_bug.cgi?id=2262284","https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1","https://github.com/yarnpkg/yarn/releases/tag/v1.22.13"],"weaknesses":["CWE-426"],"ingestedAt":"2026-10-29T19:49:23.890Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/4xxx/CVE-2021-4435.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-4435","state":"PUBLISHED","datePublished":"2024-02-04T19:16:35.651Z","dateUpdated":"2025-06-17T14:29:17.224Z","assignerShortName":"fedora","assignerOrgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateReserved":"2024-02-01T14:23:02.896Z"},"containers":{"cna":{"title":"Yarn: untrusted search path","descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"yarn","versions":[{"version":"1.22.13","status":"unaffected"}]},{"vendor":"Fedora","product":"Fedora","packageName":"yarnpkg","defaultStatus":"unaffected","collectionURL":"https://packages.fedoraproject.org/"},{"vendor":"Fedora","product":"Extra Packages for Enterprise Linux","packageName":"yarnpkg","defaultStatus":"unaffected","collectionURL":"https://packages.fedoraproject.org/"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4435","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262284","name":"RHBZ#2262284","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1"},{"url":"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13"}],"metrics":[{"other":{"content":{"value":"Moderate","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-426","description":"Untrusted Search Path","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"fedora","orgId":"92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5","dateUpdated":"2024-02-04T19:16:35.651Z"},"datePublic":"2021-09-20T00:00:00.000Z","x_redhatCweChain":"CWE-426: Untrusted Search Path","timeline":[{"lang":"en","time":"2023-10-23T00:00:00.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2021-09-20T00:00:00.000Z","value":"Made public."}],"credits":[{"lang":"en","value":"Red Hat would like to thank Paul Gerste (Sonar) for reporting this issue."}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://access.redhat.com/security/cve/CVE-2021-4435","tags":["vdb-entry","x_refsource_REDHAT","x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262284","name":"RHBZ#2262284","tags":["issue-tracking","x_refsource_REDHAT","x_transferred"]},{"url":"https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1","tags":["x_transferred"]},{"url":"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:30:07.387Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-17T14:29:04.160012Z","id":"CVE-2021-4435","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-17T14:29:17.224Z"}}]}}}