{
  "threat_severity" : "Important",
  "public_date" : "2018-06-08T00:00:00Z",
  "bugzilla" : {
    "description" : "gnupg2: Improper sanitization of filenames allows for the display of fake status messages and the bypass of signature verification",
    "id" : "1589620",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1589620"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.5",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-20",
  "details" : [ "mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers to spoof the output that GnuPG sends on file descriptor 2 to other programs that use the \"--status-fd 2\" option. For example, the OpenPGP data might represent an original filename that contains line feed characters in conjunction with GOODSIG or VALIDSIG status codes.", "A data validation flaw was found in the way gnupg processes file names during decryption and signature validation. An attacker may be able to inject messages into gnupg verbose message logging which may have the potential to bypass the integrity of signature authentication mechanisms and could have other unintended consequences if applications take action(s) based on parsed verbose gnupg output." ],
  "statement" : "Red Hat Product Security has rated this issue as having a security impact of Important, and a future update may address this flaw.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "release_date" : "2018-07-11T00:00:00Z",
    "advisory" : "RHSA-2018:2180",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6",
    "package" : "gnupg2-0:2.0.14-9.el6_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2018-07-11T00:00:00Z",
    "advisory" : "RHSA-2018:2181",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "gnupg2-0:2.0.22-5.el7_5"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Will not fix",
    "package_name" : "gnupg",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Will not fix",
    "package_name" : "gnupg2",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "gnupg2",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2018-12020\nhttps://nvd.nist.gov/vuln/detail/CVE-2018-12020\nhttps://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html" ],
  "name" : "CVE-2018-12020",
  "mitigation" : {
    "value" : "This flaw can be mitigated by appending the --no-verbose command line flag.",
    "lang" : "en:us"
  },
  "csaw" : false
}