CVE-2023-36664
High · 7.8CVSS
7.8
EPSS
3.9%
Published
Jun 25, 2023
CISA due date
—
Cloudanix analysis
A problem in a command-line tool for handling website tasks could let attackers interfere with or seize control of that tool on affected systems.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw causes memory corruption within the Drush process, enabling potential arbitrary code execution or denial of service through manipulated memory structures.
Why it matters to the business
Systems using the vulnerable Drush tool for site management face risk of disruption or unauthorized control, affecting operational workflows for affected Drupal environments.
How an attack unfolds
An attacker identifies a vulnerable Drush installation and supplies crafted input via command-line operations that triggers the memory corruption, allowing takeover of the process execution flow.
How to fix it
Upgrade drush (Bitnami) to version 9.2.16 or later to resolve the memory corruption issue.
How to confirm the fix worked
Confirm the running Drush version meets or exceeds 9.2.16 and validate through version checks or memory safety testing tools.
Typical attack path
- Locate exposed or accessible Drush installations on target systems
- Craft and deliver malicious input through Drush commands
- Trigger memory corruption to alter program state
- Escalate to code execution or service interruption
How to detect it
Review system and application logs for unexpected Drush process terminations or unusual command patterns that may indicate prior exploitation attempts.
What your security team should do
- Apply the fixed version 9.2.16 immediately across all instances
- Restrict Drush command access to trusted users only
- Monitor for anomalous process behavior or crashes
The record
Artifex Ghostscript before 10.01.2 mishandles permission validation for pipe devices (with the %pipe% prefix or the | pipe character prefix).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | ghostscript | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | ghostscript-doc | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | ghostscript-tools-fonts | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | ghostscript-tools-printing | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | ghostscript-x11 | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | libgs | 0 | 9.54.0-10.el9_2 |
| AlmaLinux:9 | libgs-devel | 0 | 9.54.0-10.el9_2 |
| Alpine:v3.15 | ghostscript | 0 | 9.55.0-r2 |
| Alpine:v3.16 | ghostscript | 0 | 9.56.1-r2 |
| Chainguard | ghostscript | 0 | 0 |
| Chainguard | ghostscript-dbg | 0 | 0 |
| Chainguard | ghostscript-dev | 0 | 0 |
| Chainguard | ghostscript-doc | 0 | 0 |
| Debian:11 | ghostscript | 0 | 9.53.3~dfsg-7+deb11u5 |
| Debian:12 | ghostscript | 0 | 10.0.0~dfsg-11+deb12u1 |
| Debian:13 | ghostscript | 0 | 10.01.2~dfsg-1 |
| Debian:14 | ghostscript | 0 | 10.01.2~dfsg-1 |
| Mageia:8 | ghostscript | 0 | 9.53.3-2.6.mga8 |
| Mageia:9 | ghostscript | 0 | 10.00.0-6.2.mga9 |
| Red Hat:enterprise_linux:9::appstream | ghostscript | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-debugsource | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-doc | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-gtk-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-tools-dvipdf | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-tools-fonts | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-tools-printing | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-x11 | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | ghostscript-x11-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | libgs | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | libgs-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::appstream | libgs-devel | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-debugsource | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-doc | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-gtk-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-tools-dvipdf | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-tools-fonts | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-tools-printing | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-x11 | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | ghostscript-x11-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | libgs | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | libgs-debuginfo | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:enterprise_linux:9::crb | libgs-devel | 0 | 0:9.54.0-10.el9_2 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-debugsource | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-doc | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-gtk-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-tools-dvipdf | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-tools-fonts | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-tools-printing | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-x11 | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | ghostscript-x11-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | libgs | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | libgs-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::appstream | libgs-devel | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-debugsource | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-doc | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-gtk-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-tools-dvipdf | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-tools-fonts | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-tools-printing | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-x11 | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | ghostscript-x11-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | libgs | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | libgs-debuginfo | 0 | 0:9.54.0-7.el9_0.1 |
| Red Hat:rhel_eus:9.0::crb | libgs-devel | 0 | 0:9.54.0-7.el9_0.1 |
| Rocky Linux:9 | ghostscript | 0 | 0:9.54.0-10.el9_2 |
| SUSE:Enterprise Storage 7 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Enterprise Storage 7.1 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Real Time 15 SP3 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server 12 SP4-ESPOS | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server 12 SP5 | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:Manager Proxy 4.2 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:Manager Server 4.2 | ghostscript | 0 | 9.52-150000.167.1 |
| SUSE:OpenStack Cloud 9 | ghostscript | 0 | 9.52-23.54.1 |
| SUSE:OpenStack Cloud Crowbar 9 | ghostscript | 0 | 9.52-23.54.1 |
| Ubuntu:20.04:LTS | ghostscript | 0 | 9.50~dfsg-5ubuntu4.8 |
| Ubuntu:22.04:LTS | ghostscript | 0 | 9.55.0~dfsg1-0ubuntu5.3 |
| Wolfi | ghostscript | 0 | 0 |
| Wolfi | ghostscript-dbg | 0 | 0 |
| Wolfi | ghostscript-dev | 0 | 0 |
| Wolfi | ghostscript-doc | 0 | 0 |
| openSUSE:Leap 15.4 | ghostscript | 0 | 9.52-150000.167.1 |
| openSUSE:Leap 15.5 | ghostscript | 0 | 9.52-150000.167.1 |
| openSUSE:Tumbleweed | ghostscript | 0 | 9.56.1-4.1 |
Related vulnerabilities
- CVE-2024-46956 An issue was discovered in psi/zfile.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46953 An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46954 An issue was discovered in decode_utf8 in base/gp_utf8.c in Artifex Ghostscript before… Also affects ghostscript
- CVE-2024-46952 An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46951 An issue was discovered in psi/zcolor.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2023-46751 An issue was discovered in the function gdev_prn_open_printer_seekable() in Artifex… Also affects ghostscript
- CVE-2023-38559 A buffer overflow flaw was found in base/gdevdevn.c:1973 in devn_pcx_write_rle() in… Also affects ghostscript
- CVE-2017-8291 Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution… Also affects ghostscript