LiveActive security incident?Get immediate response
CVE Record

CVE-2017-18205: In builtin.c in zsh before 5.4, when sh compatibility mode is used, there is a NULL pointer dereference dur...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

CVE-2017-18205 is a zsh crash bug. In zsh before 5.4, a specific shell compatibility mode can dereference NULL when cd is run without an argument and HOME is unset. The likely business impact is interruption of affected shell processes, not direct data theft or system takeover.

Executive priority

Handle through normal vulnerability management. Prioritize internet-facing or automation-heavy systems only if they run old zsh in relevant modes. There is no provided evidence of active exploitation or direct compromise capability.

Technical view

The issue is in zsh builtin.c before version 5.4. When sh compatibility mode is active, processing cd with no argument can hit a NULL pointer if HOME is absent. The provided sources do not include CVSS, CWE, CPEs, or proof of broader impact beyond process availability.

Likely exposure

Exposure is most likely on systems running zsh before 5.4, including distribution-packaged zsh versions addressed by Ubuntu, Gentoo, and Red Hat advisories. Practical exposure depends on whether zsh runs in sh compatibility mode with HOME unset.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation. The described trigger is narrow and appears to cause a NULL pointer dereference crash. Treat it as an availability risk unless vendor guidance identifies additional impact.

Researcher notes

Key condition: zsh before 5.4, sh compatibility mode, cd with no argument, and HOME unset. The bundle references an upstream source commit and three vendor advisories, but lacks CVSS, CWE, and CPE detail, so exposure validation should rely on package inventory and vendor backport data.

Mitigation direction

  • Apply vendor zsh updates from Ubuntu, Gentoo, Red Hat, or your distribution.
  • For self-managed builds, update zsh to version 5.4 or later.
  • Check vendor guidance for backported fixed package versions.
  • Avoid production scripts depending on zsh sh compatibility with HOME unset.

Validation and detection

  • Inventory systems and containers with zsh installed.
  • Confirm installed zsh versions or vendor package fix status.
  • Identify automation invoking zsh in sh compatibility mode.
  • Review service environments where HOME may be unset.
  • Track remediation against applicable vendor advisory records.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2017-18205 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.