Description
In subst.c in zsh through 5.4.2, there is a NULL pointer dereference when using ${(PA)...} on an empty array result.
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.5-1 | — |
| Debian 13 | zsh | 5.5-1 | — |
| Debian 12 | zsh | 5.5-1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | zsh +1 | 5.3.1-7.amzn2 | ALAS2-2018-986 |
Advisories 1
- ALAS2-2018-986 Low: zsh security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 5, 2018
References
- USN-3593-1 vendor-advisory
- GLSA-201805-10 vendor-advisory
- https://sourceforge.net/p/zsh/code/ci/110b13e1090bc31ac1352b28adc2d02b6d25a102