Bugzilla – Bug 1226944
VUL-0: CVE-2024-33870: ghostscript: path traversal to arbitrary files if the current directory is in the permitted paths
Last modified: 2024-07-04 11:20:29 UTC
When the `gp_validate_path_len` function validates a path, it distinguishes between absolute and relative paths. In the case of relative paths, it will check the path with and without the current-directory-prefix ("foo" and "./foo"). The problem is that it doesn't take into account paths with a parent-directory-prefix. So a path like "../../foo" is also tested as "./../../foo" and if the current directory "./" is in the permitted paths, it will pass the check and you can access arbitrary files. References: ttps://ghostscript.readthedocs.io/en/gs10.03.1/News.html https://bugs.ghostscript.com/show_bug.cgi?id=707686 Upstream commit: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=79aef19c685984dc3da2dc090450407d9fbcff80 References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-33870 https://bugzilla.redhat.com/show_bug.cgi?id=2293959
Fixed for OBS Printing and forwared to openSUSE Factory ----------------------------------------------------------- # osc request accept -m "Security fixes for \ CVE-2024-33869 bsc#1226946 and \ CVE-2023-52722 bsc#1223852 and \ CVE-2024-33870 bsc#1226944 and \ CVE-2024-33871 bsc#1225491 and \ CVE-2024-29510 bsc#1226945 \ for ghostscript and ghostscript-mini" 1184312 ... Forward this submit to it? ([y]/n)y ... New request # 1184313 -----------------------------------------------------------
This is an autogenerated message for OBS integration: This bug (1226944) was mentioned in https://build.opensuse.org/request/show/1184313 Factory / ghostscript
SUSE-SU-2024:2276-1: An update that solves three vulnerabilities can now be installed. Category: security (important) Bug References: 1226944, 1226945, 1226946 CVE References: CVE-2024-29510, CVE-2024-33869, CVE-2024-33870 Maintenance Incident: [SUSE:Maintenance:34522](https://smelt.suse.de/incident/34522/) Sources used: SUSE Linux Enterprise Software Development Kit 12 SP5 (src): ghostscript-9.52-23.80.1 SUSE Linux Enterprise High Performance Computing 12 SP5 (src): ghostscript-9.52-23.80.1 SUSE Linux Enterprise Server 12 SP5 (src): ghostscript-9.52-23.80.1 SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): ghostscript-9.52-23.80.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2024:2292-1: An update that solves three vulnerabilities can now be installed. Category: security (important) Bug References: 1226944, 1226945, 1226946 CVE References: CVE-2024-29510, CVE-2024-33869, CVE-2024-33870 Maintenance Incident: [SUSE:Maintenance:34519](https://smelt.suse.de/incident/34519/) Sources used: openSUSE Leap 15.5 (src): ghostscript-9.52-150000.194.1 openSUSE Leap 15.6 (src): ghostscript-9.52-150000.194.1 Basesystem Module 15-SP5 (src): ghostscript-9.52-150000.194.1 Basesystem Module 15-SP6 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): ghostscript-9.52-150000.194.1 SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): ghostscript-9.52-150000.194.1 SUSE Manager Proxy 4.3 (src): ghostscript-9.52-150000.194.1 SUSE Manager Retail Branch Server 4.3 (src): ghostscript-9.52-150000.194.1 SUSE Manager Server 4.3 (src): ghostscript-9.52-150000.194.1 SUSE Enterprise Storage 7.1 (src): ghostscript-9.52-150000.194.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.