{
  "threat_severity" : "Moderate",
  "public_date" : "2020-02-26T00:00:00Z",
  "bugzilla" : {
    "description" : "yarn: TOCTOU vulnerability leads to cache pollution",
    "id" : "1851875",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1851875"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.4",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N",
    "status" : "draft"
  },
  "cwe" : "CWE-367",
  "details" : [ "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.", "A flaw was found in Yarn. The package integrity validation in Yarn contains a time-of-check to time-of-use (TOCTOU) vulnerability where the hash is computed before writing a package to cache and is not computed again when reading from the cache. This flaw may lead to a cache pollution attack. The highest threat from this vulnerability is to integrity." ],
  "package_state" : [ {
    "product_name" : "Red Hat Quay 3",
    "fix_state" : "Not affected",
    "package_name" : "yarn",
    "cpe" : "cpe:/a:redhat:quay:3"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2019-15608\nhttps://nvd.nist.gov/vuln/detail/CVE-2019-15608" ],
  "name" : "CVE-2019-15608",
  "mitigation" : {
    "value" : "Run 'yarn cache clean' before installs.",
    "lang" : "en:us"
  },
  "csaw" : false
}