{"api_version":"1","generated_at":"2026-04-22T16:04:04+00:00","cve":"CVE-2022-2085","urls":{"html":"https://cve.report/CVE-2022-2085","api":"https://cve.report/api/cve/CVE-2022-2085.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-2085","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-2085"},"summary":{"title":"CVE-2022-2085","description":"A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-06-16 18:15:00","updated_at":"2023-09-17 07:15:00"},"problem_types":["CWE-476"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/","name":"FEDORA-2022-d287230630","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: ghostscript-9.56.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202211-11","name":"GLSA-202211-11","refsource":"GENTOO","tags":[],"title":"GPL Ghostscript: Multiple Vulnerabilities (GLSA 202211-11) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2095261","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2095261","refsource":"MISC","tags":[],"title":"2095261 – (CVE-2022-2085) CVE-2022-2085 ghostscript: Null pointer dereference in gx_default_create_buf_device()","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://git.ghostscript.com/?p=ghostpdl.git;h=ae1061d948d88667bdf51d47d918c4684d0f67df","name":"http://git.ghostscript.com/?p=ghostpdl.git;h=ae1061d948d88667bdf51d47d918c4684d0f67df","refsource":"MISC","tags":[],"title":"git.ghostscript.com Git - ghostpdl.git/commit","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"http://git.ghostscript.com/?p=ghostpdl.git%3Bh=ae1061d948d88667bdf51d47d918c4684d0f67df","name":"http://git.ghostscript.com/?p=ghostpdl.git%3Bh=ae1061d948d88667bdf51d47d918c4684d0f67df","refsource":"MISC","tags":[],"title":"git.ghostscript.com Git - ghostpdl.git/commit","mime":"text/xml","httpstatus":"404","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 35 Update: ghostscript-9.56.1-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=704945","name":"https://bugs.ghostscript.com/show_bug.cgi?id=704945","refsource":"MISC","tags":[],"title":"704945 – Null pointer dereference in gx_default_create_buf_device()","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202309-03","name":"https://security.gentoo.org/glsa/202309-03","refsource":"MISC","tags":[],"title":"GPL Ghostscript: Multiple Vulnerabilities (GLSA 202309-03) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-2085","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2085","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"2085","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"artifex","cpe5":"ghostscript","cpe6":"9.55.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"2085","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"2085","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-2085","qid":"182693","title":"Debian Security Update for ghostscript (CVE-2022-2085)"},{"cve":"CVE-2022-2085","qid":"198965","title":"Ubuntu Security Notification for Ghostscript Vulnerabilities (USN-5643-1)"},{"cve":"CVE-2022-2085","qid":"283025","title":"Fedora Security Update for ghostscript (FEDORA-2022-d287230630)"},{"cve":"CVE-2022-2085","qid":"354420","title":"Amazon Linux Security Advisory for ghostscript : ALAS2022-2022-230"},{"cve":"CVE-2022-2085","qid":"354557","title":"Amazon Linux Security Advisory for ghostscript : ALAS-2022-230"},{"cve":"CVE-2022-2085","qid":"355242","title":"Amazon Linux Security Advisory for ghostscript : ALAS2023-2023-053"},{"cve":"CVE-2022-2085","qid":"710680","title":"Gentoo Linux GPL Ghostscript Multiple Vulnerabilities (GLSA 202211-11)"},{"cve":"CVE-2022-2085","qid":"710748","title":"Gentoo Linux GPL Ghostscript Multiple Vulnerabilities (GLSA 202309-03)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-2085","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-476 - NULL Pointer Dereference","cweId":"CWE-476"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"GhostScript","version":{"version_data":[{"version_affected":"=","version_value":"Affects in Ghostscript v9.55.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=704945","refsource":"MISC","name":"https://bugs.ghostscript.com/show_bug.cgi?id=704945"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2095261","refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2095261"},{"url":"http://git.ghostscript.com/?p=ghostpdl.git%3Bh=ae1061d948d88667bdf51d47d918c4684d0f67df","refsource":"MISC","name":"http://git.ghostscript.com/?p=ghostpdl.git%3Bh=ae1061d948d88667bdf51d47d918c4684d0f67df"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/"},{"url":"https://security.gentoo.org/glsa/202211-11","refsource":"MISC","name":"https://security.gentoo.org/glsa/202211-11"},{"url":"https://security.gentoo.org/glsa/202309-03","refsource":"MISC","name":"https://security.gentoo.org/glsa/202309-03"}]}},"nvd":{"publishedDate":"2022-06-16 18:15:00","lastModifiedDate":"2023-09-17 07:15:00","problem_types":["CWE-476"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"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:9.55.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}