CVE-2019-20044 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 e...
HighCVSS 7.8
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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().
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/zsh(Ubuntu:22.04) | All versions | No fix listed |
| debian/zsh(Debian:12) | < 5.8-1 | 5.8-1 |
| debian/zsh(Debian:13) | < 5.8-1 | 5.8-1 |
| debian/zsh(Debian:14) | < 5.8-1 | 5.8-1 |
| zsh | < 5.8 | 5.8 |
| fedoraproject fedora | = 30 | No fix listed |
| fedoraproject fedora | = 31 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| apple iPadOS | < 13.5 | 13.5 |
| apple iphone os | < 13.5 | 13.5 |
| apple mac os x | < 10.15.5 | 10.15.5 |
| apple mac os x | >= 10.13.0, < 10.13.6 | 10.13.6 |
| apple mac os x | >= 10.14.0, < 10.14.6 | 10.14.6 |
| apple mac os x | >= 10.15, < 10.15.5 | 10.15.5 |
| apple mac os x | = 10.13.6 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2018-002 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2018-003 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-001 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-002 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-003 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-004 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-005 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-006 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2019-007 | No fix listed |
Show 26 more
| Product | Affected versions | Fixed in |
|---|---|---|
| apple mac os x | = 10.13.6-security_update_2020-001 | No fix listed |
| apple mac os x | = 10.13.6-security_update_2020-002 | No fix listed |
| apple mac os x | = 10.14.6 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-001 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-002 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-004 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-005 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-006 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2019-007 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2020-001 | No fix listed |
| apple mac os x | = 10.14.6-security_update_2020-002 | No fix listed |
| apple tvOS | < 13.4.5 | 13.4.5 |
| apple watchOS | < 6.2.5 | 6.2.5 |
| alpine/zsh(Alpine:v3.12) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.13) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.14) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.15) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.16) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.17) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.18) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.19) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.20) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.21) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.22) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.23) | < 5.8-r0 | 5.8-r0 |
| alpine/zsh(Alpine:v3.24) | < 5.8-r0 | 5.8-r0 |
References
- Ubuntu CVE tracker vendor-advisory
- USN-5325-1 vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2019-20044 vendor-advisory
- 20200529 APPLE-SA-2020-05-26-1 iOS 13.5 and iPadOS 13.5 mailing-list third-party-advisory
- 20200529 APPLE-SA-2020-05-26-3 macOS Catalina 10.15.5, Security Update 2020-003 Mojave, Security Update 2020-003 High Sierra mailing-list third-party-advisory
- 20200529 APPLE-SA-2020-05-26-5 watchOS 6.2.5 mailing-list third-party-advisory
- 20200529 APPLE-SA-2020-05-26-4 tvOS 13.4.5 mailing-list third-party-advisory
- zsh.sourceforge.net release-notes third-party-advisory
- github.com broken-link
- [debian-lts-announce] 20200302 [SECURITY] [DLA 2117-1] zsh security update mailing-list third-party-advisory
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update mailing-list third-party-advisory
- FEDORA-2020-3f38f3e517 vendor-advisory
- FEDORA-2020-9009363f0f vendor-advisory
- GLSA-202003-55 third-party-advisory vendor-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- www.zsh.org release-notes vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking