{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-43115 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-43115 is a high-severity command injection vulnerability in Artifex Ghostscript, published on 18 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-43115 and fix it if it is affected.\n\nWhat it is: CVE-2023-43115 is a high-severity command injection vulnerability in Artifex Ghostscript, published on 18 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-43115 in the wild and no public exploit code.\n\nAffected product: Artifex Ghostscript. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-43115/ (Markdown: https://insights.sbomify.com/CVE-2023-43115/index.md)","id":"CVE-2023-43115","markdown":"https://insights.sbomify.com/CVE-2023-43115/index.md","name":"CVE-2023-43115","record":{"aliases":["ALPINE-CVE-2023-43115","ALSA-2023:6265","ALSA-2023:6732","BELL-CVE-2023-43115","DEBIAN-CVE-2023-43115","GHSA-9p55-888j-qxrh","MGASA-2023-0290","OESA-2023-1695","OESA-2023-1696","RHSA-2023:5868","RHSA-2023:6265","RHSA-2023:6732","SUSE-SU-2023:3938-1","SUSE-SU-2023:3984-1","UBUNTU-CVE-2023-43115","USN-6433-1","openSUSE-SU-2024:13247-1","openSUSE-SU-2026:10855-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ghostscript library","requires_auth":"none","summary":"Attackers can achieve remote code execution by crafting PostScript documents that manipulate IJS device settings in Ghostscript.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ghostscript","vendor":"artifex"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"In Artifex Ghostscript through 10.01.2, gdevijs.c in GhostPDL can lead to remote code execution via crafted PostScript documents because they can switch to the IJS device, or change the IjsServer parameter, after SAFER has been activated. NOTE: it is a documented risk that the IJS server can be specified on a gs command line (the IJS device inherently must execute a command to start the IJS server).","ecosystems":["AlmaLinux:9","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.0::crb","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-09-28","github_poc":1,"max_poc_stars":8,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-09-28T17:30:06Z","kind":"github_poc","ref":"https://github.com/jostaub/ghostscript-CVE-2023-43115","stars":8,"title":"A small write-up with examples to understand CVE-2023-43115"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2023-43115","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"artifex:ghostscript","products":["artifex:ghostscript","fedoraproject:fedora"],"type":"command_injection","year":"2023"},"n_packages":101,"n_references":5,"next":{"headline":"Buildkite Elastic CI for AWS symbolic link following vulnerability","id":"CVE-2023-43116"},"packages":[{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript","purl":"pkg:rpm/almalinux/ghostscript","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript","purl":"pkg:rpm/almalinux/ghostscript","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-doc","purl":"pkg:rpm/almalinux/ghostscript-doc","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-doc","purl":"pkg:rpm/almalinux/ghostscript-doc","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-dvipdf","purl":"pkg:rpm/almalinux/ghostscript-tools-dvipdf","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-dvipdf","purl":"pkg:rpm/almalinux/ghostscript-tools-dvipdf","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-fonts","purl":"pkg:rpm/almalinux/ghostscript-tools-fonts","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-fonts","purl":"pkg:rpm/almalinux/ghostscript-tools-fonts","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-printing","purl":"pkg:rpm/almalinux/ghostscript-tools-printing","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-printing","purl":"pkg:rpm/almalinux/ghostscript-tools-printing","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11","purl":"pkg:rpm/almalinux/ghostscript-x11","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11","purl":"pkg:rpm/almalinux/ghostscript-x11","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"libgs","purl":"pkg:rpm/almalinux/libgs","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"libgs","purl":"pkg:rpm/almalinux/libgs","source":"ALSA-2023:6732"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"libgs-devel","purl":"pkg:rpm/almalinux/libgs-devel","source":"ALSA-2023:6265"},{"ecosystem":"AlmaLinux:9","fixed":["9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"libgs-devel","purl":"pkg:rpm/almalinux/libgs-devel","source":"ALSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript","purl":"pkg:rpm/redhat/ghostscript","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript","purl":"pkg:rpm/redhat/ghostscript","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-debuginfo","purl":"pkg:rpm/redhat/ghostscript-debuginfo","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-debuginfo","purl":"pkg:rpm/redhat/ghostscript-debuginfo","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-debugsource","purl":"pkg:rpm/redhat/ghostscript-debugsource","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-debugsource","purl":"pkg:rpm/redhat/ghostscript-debugsource","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-doc","purl":"pkg:rpm/redhat/ghostscript-doc","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-doc","purl":"pkg:rpm/redhat/ghostscript-doc","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-gtk-debuginfo","purl":"pkg:rpm/redhat/ghostscript-gtk-debuginfo","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-gtk-debuginfo","purl":"pkg:rpm/redhat/ghostscript-gtk-debuginfo","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-dvipdf","purl":"pkg:rpm/redhat/ghostscript-tools-dvipdf","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-dvipdf","purl":"pkg:rpm/redhat/ghostscript-tools-dvipdf","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-fonts","purl":"pkg:rpm/redhat/ghostscript-tools-fonts","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-fonts","purl":"pkg:rpm/redhat/ghostscript-tools-fonts","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-printing","purl":"pkg:rpm/redhat/ghostscript-tools-printing","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-tools-printing","purl":"pkg:rpm/redhat/ghostscript-tools-printing","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11","purl":"pkg:rpm/redhat/ghostscript-x11","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11","purl":"pkg:rpm/redhat/ghostscript-x11","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11-debuginfo","purl":"pkg:rpm/redhat/ghostscript-x11-debuginfo","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"ghostscript-x11-debuginfo","purl":"pkg:rpm/redhat/ghostscript-x11-debuginfo","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"libgs","purl":"pkg:rpm/redhat/libgs","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"libgs","purl":"pkg:rpm/redhat/libgs","source":"RHSA-2023:6732"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-11.el9_2"],"introduced":["0"],"last_affected":[],"package":"libgs-debuginfo","purl":"pkg:rpm/redhat/libgs-debuginfo","source":"RHSA-2023:6265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.54.0-14.el9_3"],"introduced":["0"],"last_affected":[],"package":"libgs-debuginfo","purl":"pkg:rpm/redhat/libgs-debuginfo","source":"RHSA-2023:6732"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2023-43114"},"products":["n/a"],"published":"2023-09-18","related":[{"cvss_score":7.8,"headline":"Artifex Ghostscript Type Confusion","id":"CVE-2017-8291","kev_date_added":"2022-05-24","published":"2017-04-27"},{"cvss_score":9.9,"headline":"Command injection in ghostscript","id":"CVE-2021-3781","kev_date_added":null,"published":"2022-02-16"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2025-27831","kev_date_added":null,"published":"2025-03-25"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2025-27832","kev_date_added":null,"published":"2025-03-25"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2025-27836","kev_date_added":null,"published":"2025-03-25"},{"cvss_score":9.8,"headline":"An issue was discovered in Artifex Ghostscript before 10.05.0.","id":"CVE-2025-27837","kev_date_added":null,"published":"2025-03-25"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2020-36773","kev_date_added":null,"published":"2024-02-04"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution by crafting PostScript documents that manipulate IJS device settings in Ghostscript.","url":"https://insights.sbomify.com/CVE-2023-43115/"}