Description
An issue was discovered in zsh before 5.6. Shebang lines exceeding 64 characters were truncated, potentially leading to an execve call to a program name that is a substring of the intended one.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | zsh before 5.6 | zsh before 5.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | zsh | 5.6-1 | — |
| Debian 13 | zsh | 5.6-1 | — |
| Debian 12 | zsh | 5.6-1 | — |
| Debian 9 | zsh | 5.3.1-4+deb9u1 | DLA-2470-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | zsh | 5.4.2-3ubuntu3.1 | USN-3764-1 |
| Ubuntu 16.04 LTS | zsh | 5.1.1-1ubuntu2.3 | USN-3764-1 |
| Ubuntu 14.04 LTS | zsh | 5.0.2-3ubuntu6.3 | USN-3764-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | zsh +1 | 5.0.2-33.el7 | RHSA-2019:2017 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | zsh | 5.6-3.6.1 | SUSE-SU-2018:2686-1 |
| SLES 12 SP5 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SLES 12 SP4 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SLES 12 SP3 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SLES 12 SP2 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | zsh | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SLES for SAP 12 SP5 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SLES for SAP 12 SP4 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SLES for SAP 12 SP3 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE OpenStack Cloud Crowbar 9 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE OpenStack Cloud Crowbar 8 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE OpenStack Cloud 9 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE OpenStack Cloud 8 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | zsh | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE HPE Helion OpenStack 8 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | zsh | 5.8-7.7 | openSUSE-SU-2024:11543-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | zsh +1 | 5.5.1-2.amzn2.0.1 | ALAS2-2018-1089 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | zsh +1 | 5.0.2-33.el7 | ELSA-2019-2017 |
Advisories 10
- WID-SEC-2022-0517 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- RHSA-2019:2017 Red Hat Security Advisory: zsh security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3764-1 zsh vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-2470-1 zsh - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11543-1 zsh-5.8-7.7 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:14910-1 Security update for zsh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0161-1 Security update for zsh SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2686-1 Security update for zsh SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2019-2017 Moderate: zsh security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019
- ALAS2-2018-1089 Moderate: zsh security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 10, 2018
References
- https://bugs.debian.org/908000
- https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d
- https://www.zsh.org/mla/zsh-announce/136
- USN-3764-1 vendor-advisory
- GLSA-201903-02 vendor-advisory
- RHSA-2019:2017 vendor-advisory
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update mailing-list