{"api_version":"1","generated_at":"2026-04-22T23:07:59+00:00","cve":"CVE-2016-7977","urls":{"html":"https://cve.report/CVE-2016-7977","api":"https://cve.report/api/cve/CVE-2016-7977.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-7977","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-7977"},"summary":{"title":"CVE-2016-7977","description":"Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently read arbitrary files via the use of the .libfile operator in a crafted postscript document.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2017-05-23 04:29:00","updated_at":"2023-11-07 02:35:00"},"problem_types":["CWE-200"],"metrics":[],"references":[{"url":"http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70","name":"http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70","refsource":"CONFIRM","tags":["Patch"],"title":"git.ghostscript.com Git - ghostpdl.git/commitdiff","mime":"text/xml","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=697169","name":"https://bugs.ghostscript.com/show_bug.cgi?id=697169","refsource":"CONFIRM","tags":["Issue Tracking","Patch"],"title":"697169 – .libfile does not honor -dSAFER","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=8abd22010eb4db0fb1b10e430d5f5d83e015ef70","name":"http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=8abd22010eb4db0fb1b10e430d5f5d83e015ef70","refsource":"","tags":[],"title":"git.ghostscript.com Git - ghostpdl.git/commitdiff","mime":"text/xml","httpstatus":"404","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2016/09/29/28","name":"[oss-security] 20160928 Re: ImageMagick identify \"d:\" hangs","refsource":"MLIST","tags":["Mailing List","Patch"],"title":"oss-security - Re: ImageMagick identify \"d:\" hangs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2016/10/05/15","name":"[oss-security] 20161005 Re: CVE Request - multiple ghostscript -dSAFER sandbox problems","refsource":"MLIST","tags":["Mailing List","Patch"],"title":"oss-security - Re: CVE Request - multiple ghostscript -dSAFER sandbox problems","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html","name":"http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html","refsource":"CONFIRM","tags":[],"title":"Oracle Critical Patch Update - January 2018","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0013.html","name":"RHSA-2017:0013","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0014.html","name":"RHSA-2017:0014","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/95334","name":"95334","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"Ghostscript CVE-2016-7977 Information Disclosure Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://security.gentoo.org/glsa/201702-31","name":"GLSA-201702-31","refsource":"GENTOO","tags":[],"title":"GPL Ghostscript: Multiple vulnerabilities (GLSA 201702-31) — Gentoo Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://ghostscript.com/doc/9.21/History9.htm","name":"https://ghostscript.com/doc/9.21/History9.htm","refsource":"CONFIRM","tags":["Release Notes"],"title":"History of Ghostscript versions 9.n","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://www.debian.org/security/2016/dsa-3691","name":"DSA-3691","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-3691-1 ghostscript","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-7977","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-7977","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"7977","vulnerable":"1","versionEndIncluding":"9.20","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"artifex","cpe5":"ghostscript","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2016-7977","qid":"378143","title":"Virtuozzo Linux Security Update for ghostscript-doc (VZLSA-2017:0013)"},{"cve":"CVE-2016-7977","qid":"378268","title":"Virtuozzo Linux Security Update for ghostscript-devel (VZLSA-2017:0014)"},{"cve":"CVE-2016-7977","qid":"670288","title":"EulerOS Security Update for ghostscript (EulerOS-SA-2021-1788)"},{"cve":"CVE-2016-7977","qid":"710453","title":"Gentoo Linux GPL Ghostscript Multiple Vulnerabilities (GLSA 201702-31)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2016-7977","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently read arbitrary files via the use of the .libfile operator in a crafted postscript document."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"DSA-3691","refsource":"DEBIAN","url":"http://www.debian.org/security/2016/dsa-3691"},{"name":"95334","refsource":"BID","url":"http://www.securityfocus.com/bid/95334"},{"name":"http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html","refsource":"CONFIRM","url":"http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html"},{"name":"RHSA-2017:0013","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2017-0013.html"},{"name":"http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70","refsource":"CONFIRM","url":"http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70"},{"name":"[oss-security] 20160928 Re: ImageMagick identify \"d:\" hangs","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2016/09/29/28"},{"name":"RHSA-2017:0014","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2017-0014.html"},{"name":"https://bugs.ghostscript.com/show_bug.cgi?id=697169","refsource":"CONFIRM","url":"https://bugs.ghostscript.com/show_bug.cgi?id=697169"},{"name":"[oss-security] 20161005 Re: CVE Request - multiple ghostscript -dSAFER sandbox problems","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2016/10/05/15"},{"name":"https://ghostscript.com/doc/9.21/History9.htm","refsource":"CONFIRM","url":"https://ghostscript.com/doc/9.21/History9.htm"},{"name":"GLSA-201702-31","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201702-31"}]}},"nvd":{"publishedDate":"2017-05-23 04:29:00","lastModifiedDate":"2023-11-07 02:35:00","problem_types":["CWE-200"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:*","versionEndIncluding":"9.20","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"7977","Ordinal":"94592","Title":"CVE-2016-7977","CVE":"CVE-2016-7977","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"7977","Ordinal":"1","NoteData":"Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently read arbitrary files via the use of the .libfile operator in a crafted postscript document.","Type":"Description","Title":null},{"CveYear":"2016","CveId":"7977","Ordinal":"2","NoteData":"2017-05-22","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"7977","Ordinal":"3","NoteData":"2018-01-17","Type":"Other","Title":"Modified"}]}}}