CVE catalog

CVE-2017-18205

zsh: CVE-2017-18205

[CVE catalog]

Severity
Low · CVSS 2.5CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
2.04% · Oct 25, 2026

In builtin.c in zsh before 5.4, when sh compatibility mode is used, there is a NULL pointer dereference during processing of the cd command with no argument if HOME is not set.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianzshsid5.9.2-1fixed
Debianzshforky5.9.2-1fixed
Debianzshtrixie5.9-8fixed
Debianzshbookworm5.9-4fixed
Ubuntuzsh14.045.0.2-3ubuntu6vulnerable
Ubuntuzsh14.045.0.2-3ubuntu6.1fixed
Ubuntuzsh16.045.1.1-1ubuntu1vulnerable
Ubuntuzsh16.045.1.1-1ubuntu2vulnerable
Ubuntuzsh16.045.1.1-1ubuntu2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianzshsourcesid5.4.1-1unimportantNot reportedNot reported
Debianzshsourceforky5.4.1-1unimportantNot reportedNot reported
Debianzshsourcetrixie5.4.1-1unimportantNot reportedNot reported
Debianzshsourcebookworm5.4.1-1unimportantNot reportedNot reported
Ubuntuzshdeb14.045.0.2-3ubuntu6.1Not reportedUBUNTU-CVE-2017-18205Not reported
Ubuntuzshdeb16.045.1.1-1ubuntu2.1Not reportedUBUNTU-CVE-2017-18205Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [zsh]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-4+b15 · amd64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

    • 5.9-4+b15 · arm64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

  • [zsh-common]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-4 · all · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

    • 5.9-4 · all · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

  • [zsh-dev]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-4+b15 · amd64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

    • 5.9-4+b15 · arm64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

  • [zsh-doc]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-4 · all · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

    • 5.9-4 · all · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

  • [zsh-static]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-4+b15 · amd64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

    • 5.9-4+b15 · arm64 · bookworm

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · bookworm; dsa · zsh · debian · 12

[Debian 13 (Trixie)]

  • [zsh]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-8+b23 · amd64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

    • 5.9-8+b23 · arm64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

  • [zsh-common]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-8 · all · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

    • 5.9-8 · all · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

  • [zsh-dev]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-8+b23 · amd64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

    • 5.9-8+b23 · arm64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

  • [zsh-doc]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-8 · all · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

    • 5.9-8 · all · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

  • [zsh-static]Fixed

    Source package: [zsh]

    Details (2)
    • 5.9-8+b23 · amd64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

    • 5.9-8+b23 · arm64 · trixie

      Fixed · Fixed: 5.4.1-1

      dsa · zsh · debian · 13

Observed:

References