CVE
CVE-2018-7548
publishedzsh: null-pointer deref when using ${(PA)...} on an empty array result
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-986 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | zshsrc | Listed in advisory | Not stated | ALAS2-2018-986 |
| Amazon Linux | AL2 | zshx86_64 | Listed in advisory | Not stated | ALAS2-2018-986 |
Description
In subst.c in zsh through 5.4.2, there is a NULL pointer dereference when using ${(PA)...} on an empty array result.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
3- GLSA-201805-10 https://security.gentoo.org/glsa/201805-10
- https://sourceforge.net/p/zsh/code/ci/110b13e1090bc31ac1352b28adc2d02b6d25a102
- USN-3593-1 https://usn.ubuntu.com/3593-1/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9a40c2635f46060236be7471bd9a642bac6bf67be4b76c4aa207f6be6af68663
- Ingested
- 23 Sep 2026, 07:45:05 UTC
- Source record
- Official CVE record