In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by…
Priority LOW 35CWE-273Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 20 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by the --no-PRIVILEGED option. Zsh fails to overwrite the saved uid, so the original privileges can be restored by executing MODULE_PATH=/dir/with/module zmodload with a module that calls setuid().
Why it matters now
EPSS 0.00495 42nd percentileScored 2026-11-07
Fix Partial Red Hat: 4 advisoriesRed Hat: 20 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 33
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:zsh:zsh:*:*:*:*:*:*:*:* | before 5.8 | Vulnerable | zsh |
| cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Apple |
| cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Linux |
| cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* | 30 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 31 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:* | before 13.5 | Vulnerable | Apple |
| cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:* | before 13.5 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* | before 10.15.5; 10.13.0 to before 10.13.6; 10.14.0 to before 10.14.6; 10.15 to before 10.15.5 | Vulnerable | Apple |
- cpe:2.3:a:zsh:zsh:*:*:*:*:*:*:*:* Versions before 5.8 Vulnerable ·zsh
- cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple
- cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Linux
- cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* Versions 30 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:* Versions before 13.5 Vulnerable ·Apple
- cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:* Versions before 13.5 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:* Versions before 10.15.5; 10.13.0 to before 10.13.6; 10.14.0 to before 10.14.6; 10.15 to before 10.15.5 Vulnerable ·Apple
Show 23 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:apple:mac_os_x:10.13.6:-:*:*:*:*:*:* | 10.13.6 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-002:*:*:*:*:*:* | 10.13.6 security_update_2018-002 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-003:*:*:*:*:*:* | 10.13.6 security_update_2018-003 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-001:*:*:*:*:*:* | 10.13.6 security_update_2019-001 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-002:*:*:*:*:*:* | 10.13.6 security_update_2019-002 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-003:*:*:*:*:*:* | 10.13.6 security_update_2019-003 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-004:*:*:*:*:*:* | 10.13.6 security_update_2019-004 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-005:*:*:*:*:*:* | 10.13.6 security_update_2019-005 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-006:*:*:*:*:*:* | 10.13.6 security_update_2019-006 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-007:*:*:*:*:*:* | 10.13.6 security_update_2019-007 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-001:*:*:*:*:*:* | 10.13.6 security_update_2020-001 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-002:*:*:*:*:*:* | 10.13.6 security_update_2020-002 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:-:*:*:*:*:*:* | 10.14.6 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-001:*:*:*:*:*:* | 10.14.6 security_update_2019-001 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-002:*:*:*:*:*:* | 10.14.6 security_update_2019-002 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-004:*:*:*:*:*:* | 10.14.6 security_update_2019-004 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-005:*:*:*:*:*:* | 10.14.6 security_update_2019-005 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-006:*:*:*:*:*:* | 10.14.6 security_update_2019-006 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-007:*:*:*:*:*:* | 10.14.6 security_update_2019-007 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-001:*:*:*:*:*:* | 10.14.6 security_update_2020-001 | Vulnerable | Apple |
| cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-002:*:*:*:*:*:* | 10.14.6 security_update_2020-002 | Vulnerable | Apple |
| cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:* | before 13.4.5 | Vulnerable | Apple |
| cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:* | before 6.2.5 | Vulnerable | Apple |
- cpe:2.3:o:apple:mac_os_x:10.13.6:-:*:*:*:*:*:* Versions 10.13.6 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-002:*:*:*:*:*:* Versions 10.13.6 security_update_2018-002 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-003:*:*:*:*:*:* Versions 10.13.6 security_update_2018-003 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-001:*:*:*:*:*:* Versions 10.13.6 security_update_2019-001 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-002:*:*:*:*:*:* Versions 10.13.6 security_update_2019-002 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-003:*:*:*:*:*:* Versions 10.13.6 security_update_2019-003 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-004:*:*:*:*:*:* Versions 10.13.6 security_update_2019-004 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-005:*:*:*:*:*:* Versions 10.13.6 security_update_2019-005 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-006:*:*:*:*:*:* Versions 10.13.6 security_update_2019-006 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-007:*:*:*:*:*:* Versions 10.13.6 security_update_2019-007 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-001:*:*:*:*:*:* Versions 10.13.6 security_update_2020-001 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-002:*:*:*:*:*:* Versions 10.13.6 security_update_2020-002 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:-:*:*:*:*:*:* Versions 10.14.6 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-001:*:*:*:*:*:* Versions 10.14.6 security_update_2019-001 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-002:*:*:*:*:*:* Versions 10.14.6 security_update_2019-002 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-004:*:*:*:*:*:* Versions 10.14.6 security_update_2019-004 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-005:*:*:*:*:*:* Versions 10.14.6 security_update_2019-005 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-006:*:*:*:*:*:* Versions 10.14.6 security_update_2019-006 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-007:*:*:*:*:*:* Versions 10.14.6 security_update_2019-007 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-001:*:*:*:*:*:* Versions 10.14.6 security_update_2020-001 Vulnerable ·Apple
- cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-002:*:*:*:*:*:* Versions 10.14.6 security_update_2020-002 Vulnerable ·Apple
- cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:* Versions before 13.4.5 Vulnerable ·Apple
- cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:* Versions before 6.2.5 Vulnerable ·Apple
Remediation
Red Hat 4 advisories
- RHSA-2020:0978 Released 2020-03-26 · Red Hat rating Importantzsh security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.0) zsh-html-5.5.1-6.el8_0.2
- Red Hat Enterprise Linux BaseOS E4S (v. 8.0) zsh-5.5.1-6.el8_0.2
- RHSA-2020:0903 Released 2020-03-19 · Red Hat rating Importantzsh security update
- Red Hat Enterprise Linux AppStream (v. 8) zsh-html-5.5.1-6.el8_1.2
- Red Hat Enterprise Linux BaseOS (v. 8) zsh-5.5.1-6.el8_1.2
- RHSA-2020:0892 Released 2020-03-18 · Red Hat rating Importantzsh security update
- Red Hat Enterprise Linux Desktop (v. 6) zsh-4.3.11-11.el6_10
- Red Hat Enterprise Linux Desktop Optional (v. 6) zsh-html-4.3.11-11.el6_10
- Red Hat Enterprise Linux HPC Node (v. 6) zsh-4.3.11-11.el6_10
- Red Hat Enterprise Linux HPC Node Optional (v. 6) zsh-html-4.3.11-11.el6_10
- Red Hat Enterprise Linux Server (v. 6) zsh-4.3.11-11.el6_10
- Red Hat Enterprise Linux Server Optional (v. 6) zsh-html-4.3.11-11.el6_10
- Red Hat Enterprise Linux Workstation (v. 6) zsh-4.3.11-11.el6_10
- Red Hat Enterprise Linux Workstation Optional (v. 6) zsh-html-4.3.11-11.el6_10
Show 1 more Red Hat advisories
- RHSA-2020:0853 Released 2020-03-17 · Red Hat rating Importantzsh security update
- Red Hat Enterprise Linux Client (v. 7) zsh-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux Client Optional (v. 7) zsh-html-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux ComputeNode (v. 7) zsh-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) zsh-html-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux Server (v. 7) zsh-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux Server Optional (v. 7) zsh-html-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux Workstation (v. 7) zsh-5.0.2-34.el7_7.2
- Red Hat Enterprise Linux Workstation Optional (v. 7) zsh-html-5.0.2-34.el7_7.2
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2020:0903 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.0) | Fixed | RHSA-2020:0978 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2020:0903 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.0) | Fixed | RHSA-2020:0978 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2020:0853 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2020:0892 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2020:0853 |
Timeline
- 2026-10-02 Threatist record created from CVE-2019-20044
- 2026-10-03 Alias added: GHSA-gwf9-995r-26hx
References
Advisory 19
- http://zsh.sourceforge.net/releases.html
- https://www.zsh.org/mla/zsh-announce/141
- [debian-lts-announce] 20200302 [SECURITY] [DLA 2117-1] zsh security update
- FEDORA-2020-3f38f3e517
- FEDORA-2020-9009363f0f
- GLSA-202003-55
- https://support.apple.com/kb/HT211170
- https://support.apple.com/kb/HT211175
- https://support.apple.com/kb/HT211171
- https://support.apple.com/kb/HT211168
- 20200529 APPLE-SA-2020-05-26-1 iOS 13.5 and iPadOS 13.5
- 20200529 APPLE-SA-2020-05-26-5 watchOS 6.2.5
- 20200529 APPLE-SA-2020-05-26-3 macOS Catalina 10.15.5, Security Update 2020-003 Mojave, Security Update 2020-003 High Sierra
- 20200529 APPLE-SA-2020-05-26-4 tvOS 13.4.5
- https://support.apple.com/HT211168
- https://support.apple.com/HT211170
- https://support.apple.com/HT211171
- https://support.apple.com/HT211175
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update
Sources
- CVE-2019-20044 · CVE Program
- CVE-2019-20044 · NVD
- FIRST EPSS
- GHSA-gwf9-995r-26hx · GitHub Advisory Database · CC BY 4.0
- CVE-2019-20044 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences