{"id":"UBUNTU-CVE-2024-33869","details":"An issue was discovered in Artifex Ghostscript before 10.03.1. Path traversal and command execution can occur (via a crafted PostScript document) because of path reduction in base/gpmisc.c. For example, restrictions on use of %pipe% can be bypassed via the aa/../%pipe%command# output filename.","modified":"2026-04-22T14:51:52.936299Z","published":"2024-05-09T00:00:00Z","related":["USN-6835-1"],"upstream":["CVE-2024-33869"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-33869"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-33869"},{"type":"REPORT","url":"https://ghostscript.readthedocs.io/en/gs10.03.1/News.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6835-1"}],"affected":[{"package":{"name":"ghostscript","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.50~dfsg-5ubuntu4.12?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.50~dfsg-5ubuntu4.12"}]}],"versions":["9.27~dfsg+0-0ubuntu3","9.27~dfsg+0-0ubuntu4","9.50~dfsg-5ubuntu1","9.50~dfsg-5ubuntu2","9.50~dfsg-5ubuntu3","9.50~dfsg-5ubuntu4","9.50~dfsg-5ubuntu4.1","9.50~dfsg-5ubuntu4.2","9.50~dfsg-5ubuntu4.3","9.50~dfsg-5ubuntu4.4","9.50~dfsg-5ubuntu4.5","9.50~dfsg-5ubuntu4.6","9.50~dfsg-5ubuntu4.7","9.50~dfsg-5ubuntu4.8","9.50~dfsg-5ubuntu4.9","9.50~dfsg-5ubuntu4.10","9.50~dfsg-5ubuntu4.11"],"ecosystem_specific":{"binaries":[{"binary_version":"9.50~dfsg-5ubuntu4.12","binary_name":"ghostscript"},{"binary_name":"ghostscript-x","binary_version":"9.50~dfsg-5ubuntu4.12"},{"binary_version":"9.50~dfsg-5ubuntu4.12","binary_name":"libgs9"},{"binary_name":"libgs9-common","binary_version":"9.50~dfsg-5ubuntu4.12"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-33869.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.55.0~dfsg1-0ubuntu5.7?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.55.0~dfsg1-0ubuntu5.7"}]}],"versions":["9.54.0~dfsg1-0ubuntu2","9.55.0~dfsg1-0ubuntu4","9.55.0~dfsg1-0ubuntu5","9.55.0~dfsg1-0ubuntu5.1","9.55.0~dfsg1-0ubuntu5.2","9.55.0~dfsg1-0ubuntu5.3","9.55.0~dfsg1-0ubuntu5.4","9.55.0~dfsg1-0ubuntu5.5","9.55.0~dfsg1-0ubuntu5.6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ghostscript","binary_version":"9.55.0~dfsg1-0ubuntu5.7"},{"binary_version":"9.55.0~dfsg1-0ubuntu5.7","binary_name":"ghostscript-x"},{"binary_name":"libgs9","binary_version":"9.55.0~dfsg1-0ubuntu5.7"},{"binary_name":"libgs9-common","binary_version":"9.55.0~dfsg1-0ubuntu5.7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-33869.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@10.02.1~dfsg1-0ubuntu7.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.02.1~dfsg1-0ubuntu7.1"}]}],"versions":["10.01.2~dfsg1-0ubuntu2","10.01.2~dfsg1-0ubuntu2.1","10.02.1~dfsg1-0ubuntu1","10.02.1~dfsg1-0ubuntu2","10.02.1~dfsg1-0ubuntu5","10.02.1~dfsg1-0ubuntu6","10.02.1~dfsg1-0ubuntu7"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ghostscript","binary_version":"10.02.1~dfsg1-0ubuntu7.1"},{"binary_name":"libgs-common","binary_version":"10.02.1~dfsg1-0ubuntu7.1"},{"binary_name":"libgs10","binary_version":"10.02.1~dfsg1-0ubuntu7.1"},{"binary_name":"libgs10-common","binary_version":"10.02.1~dfsg1-0ubuntu7.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-33869.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}