Vulnerability Details : CVE-2019-15608
The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache. It's not computed again when reading from the cache. This may lead to a cache pollution attack.
Products affected by CVE-2019-15608
- cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-15608
0.33%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 67 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-15608
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:N |
8.6
|
2.9
|
NIST | |
5.9
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
2.2
|
3.6
|
NIST |
CWE ids for CVE-2019-15608
-
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state.Assigned by: nvd@nist.gov (Primary)
-
Assigned by: support@hackerone.com (Secondary)
References for CVE-2019-15608
-
https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c
Prevents loading the cache if the stored integrity doesnt match · yarnpkg/yarn@0474b8c · GitHub
-
https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190
yarn/CHANGELOG.md at master · yarnpkg/yarn · GitHub
-
https://hackerone.com/reports/703138
#703138 [yarn] yarn.lock integrity & hash check logic is brokenExploit;Mitigation;Third Party Advisory
Jump to