CVE-2018-7548: Null Pointer Dereference

Published Feb 27, 2018
·
Updated

In subst.c in zsh through 5.4.2, there is a NULL pointer dereference when using ${(PA)...} on an empty array result.

Affected Software

3 affected componentsFixes available
debian/zsh
5.8-6+deb11u15.9-45.9-8
Zsh zsh<=5.4.2
Canonical Ubuntu Linux=17.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/zsh to a version that resolves this vulnerability.

    Fixed in 5.8-6+deb11u1Fixed in 5.9-4Fixed in 5.9-8
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.4.2

Event History

Feb 27, 2018
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
via NVD·10:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:09 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·06:25 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2018-7548?

CVE-2018-7548 is a vulnerability in zsh through 5.4.2 that allows for a null pointer dereference when using ${(PA)...} on an empty array result.

2

What is the severity of CVE-2018-7548?

CVE-2018-7548 has a severity level of 9.8 (critical).

3

How does CVE-2018-7548 affect zsh?

CVE-2018-7548 affects zsh versions through 5.4.2.

4

How can I fix CVE-2018-7548 in zsh?

To fix CVE-2018-7548 in zsh, update to version 5.7.1-1+deb10u1, 5.8-6+deb11u1, 5.9-4, or 5.9-5.

5

Where can I find more information about CVE-2018-7548?

More information about CVE-2018-7548 can be found at the following references: [1] [2] [3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203