{"id":"ALPINE-CVE-2021-3781","details":"A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command. This flaw allows a specially crafted document to execute arbitrary commands on the system in the context of the ghostscript interpreter. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.","modified":"2026-08-27T22:18:01.641882468Z","published":"2022-02-16T19:15:08.817Z","upstream":["CVE-2021-3781"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-3781"}],"affected":[{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.53.3-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}},{"package":{"name":"ghostscript","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/ghostscript?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.54-r1"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3781.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}