{
  "threat_severity" : "Moderate",
  "public_date" : "2019-08-30T00:00:00Z",
  "bugzilla" : {
    "description" : "cpio: improper input validation when writing tar header fields leads to unexpected tar generation",
    "id" : "1765511",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1765511"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.7",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-20",
  "details" : [ "In all versions of cpio before 2.13 does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system.", "It was discovered cpio does not properly validate input files when generating TAR archives. When cpio is used to create TAR archives from paths an attacker can write to, the resulting archive may contain files with permissions the attacker did not have or in paths he did not have access to. Extracting those archives from a high-privilege user without carefully reviewing them may lead to the compromise of the system." ],
  "acknowledgement" : "Red Hat would like to thank Thomas Habets for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2020-09-29T00:00:00Z",
    "advisory" : "RHSA-2020:3908",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "cpio-0:2.11-28.el7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2021-05-18T00:00:00Z",
    "advisory" : "RHSA-2021:1582",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "cpio-0:2.12-10.el8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Extended Update Support",
    "release_date" : "2022-01-11T00:00:00Z",
    "advisory" : "RHSA-2022:0073",
    "cpe" : "cpe:/o:redhat:rhel_eus:8.2",
    "package" : "cpio-0:2.12-8.el8_2.1"
  }, {
    "product_name" : "Red Hat OpenShift Do",
    "release_date" : "2021-03-22T00:00:00Z",
    "advisory" : "RHSA-2021:0949",
    "cpe" : "cpe:/a:redhat:openshift_do:1.0::el7",
    "package" : "openshiftdo/odo-init-image-rhel7:1.1.3-2"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Out of support scope",
    "package_name" : "cpio",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "cpio",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2019-14866\nhttps://nvd.nist.gov/vuln/detail/CVE-2019-14866" ],
  "name" : "CVE-2019-14866",
  "mitigation" : {
    "value" : "TAR archives should be inspected before being extracted and the extraction should be performed with the `tar` command or `--no-absolute-filenames` option if done with `cpio`. Moreover, it should be performed by a low-privilege user whenever possible, to prevent extraction of files that could compromise the system.",
    "lang" : "en:us"
  },
  "csaw" : false
}