{
  "threat_severity" : "Moderate",
  "public_date" : "2016-09-30T00:00:00Z",
  "bugzilla" : {
    "description" : "ghostscript: reference leak in .setdevice allows use-after-free and remote code execution",
    "id" : "1382300",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1382300"
  },
  "cvss" : {
    "cvss_base_score" : "5.1",
    "cvss_scoring_vector" : "AV:N/AC:H/Au:N/C:P/I:P/A:P",
    "status" : "verified"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.8",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-416",
  "details" : [ "Use-after-free vulnerability in Ghostscript 9.20 might allow remote attackers to execute arbitrary code via vectors related to a reference leak in .setdevice.", "It was found that the ghostscript function .setdevice suffered a use-after-free vulnerability due to an incorrect reference count. A specially crafted postscript document could trigger code execution in the context of the gs process." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2017-01-04T00:00:00Z",
    "advisory" : "RHSA-2017:0013",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "ghostscript-0:9.07-20.el7_3.1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Not affected",
    "package_name" : "ghostscript",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "ghostscript",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat OpenShift Enterprise 2",
    "fix_state" : "Not affected",
    "package_name" : "ghostscript",
    "cpe" : "cpe:/a:redhat:openshift:2"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2016-7978\nhttps://nvd.nist.gov/vuln/detail/CVE-2016-7978" ],
  "name" : "CVE-2016-7978",
  "csaw" : false
}