Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-1071

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-1071
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:00 UTC · Revision 1

Source evidence

CVE-2018-1071

core-osv · Original source

Published 9 Mar 2018, 15:29 UTC

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.

osv:CVE-2018-1071
Complete source record
{
  "id": "7da47fd9a9a270b1f3bdd743a31489e08d5b15f2e5e19357ab9af110eb7abe12",
  "url": "https://osv.dev/vulnerability/CVE-2018-1071",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-1071",
    "summary": "zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.",
    "evidence": "osv:CVE-2018-1071",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-1071",
      "aliases": [
        "CVE-2018-1071"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/zsh-users/zsh",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "6ff4787e830f8edb3a7e32490a88a131e4b62f7f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:zsh:zsh:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "zsh-5.4.2",
            "zsh-5.4.1",
            "5.4.1",
            "zsh-5.4",
            "5.4",
            "5.3.1-test-2",
            "zsh-5.3.1",
            "zsh-5.3",
            "zsh-5.2-test-3",
            "zsh-5.2-test-2",
            "zsh-5.2-test-1",
            "zsh-5.2",
            "zsh-5.1.1-test-3",
            "zsh-5.1.1-test-2",
            "5.1.1-test-2",
            "zsh-5.1.1-test-1",
            "zsh-5.1.1",
            "zsh-5.1-test-1",
            "zsh-5.1",
            "zsh-5.0.8-test-3",
            "zsh-5.0.8",
            "zsh-5.0.7-dev-4",
            "zsh-5.0.7-dev-2",
            "zsh-5.0.7",
            "zsh-5.0.6-dev-1",
            "zsh-5.0.6",
            "zsh-5.0.5-dev-3",
            "zsh-5.0.5-dev-2",
            "zsh-5.0.5-dev-1",
            "zsh-5.0.5",
            "zsh-5.0.4",
            "zsh-5.0.3",
            "zsh-5.0.2-test-3",
            "zsh-5.0.2-test-2",
            "zsh-5.0.2-test-1",
            "zsh-5.0.2",
            "zsh-5.0.1",
            "zsh-5.0.0-test-1",
            "zsh-5.0.0",
            "zsh-4.3.17-test-2",
            "zsh-4.3.17",
            "zsh-4.3.16",
            "zsh-4.3.15",
            "zsh-4.3.14",
            "zsh-4.3.13",
            "zsh-4.3.12-test-3",
            "zsh-4.3.12",
            "zsh-4.3.11-dev-4",
            "zsh-4.3.11",
            "zsh-4.3.10-test-3",
            "zsh-4.3.10-dev-2",
            "zsh-4.3.10",
            "zsh-4.3.9-dev-5",
            "zsh-4.3.9-dev-3",
            "zsh-4.3.9",
            "zsh-4.3.8",
            "zsh-4.3.7",
            "zsh-4.3.6-dev-2",
            "zsh-4.3.6-dev-1",
            "zsh-4.3.6",
            "zsh-4.3.5-dev-4",
            "zsh-4.3.5-dev-3",
            "zsh-4.3.5-dev-2",
            "zsh-4.3.5-dev-1",
            "zsh-4.3.5",
            "zsh-4.3.4-dev-8",
            "zsh-4.3.4-dev-7",
            "zsh-4.3.4-dev-6",
            "zsh-4.3.4-dev-5",
            "zsh-4.3.4-dev-4",
            "zsh-4.3.4-dev-2",
            "zsh-4.3.4",
            "zsh-4.3.3",
            "zsh-4.3.2",
            "zsh-4.3.1",
            "zsh-4.3.0-dev-5",
            "zsh-4.3.0-dev-4",
            "zsh-4.3.0-dev-3",
            "zsh-4.2.3",
            "zsh-4.2.2",
            "zsh-4.2.1",
            "zsh-4.2.1-test-A",
            "zsh-4.2.0",
            "zsh-4.2.0-pre-4",
            "zsh-4.2.0-pre-3",
            "zsh-4.2.0-pre-2",
            "zsh-4.2.0-pre-1",
            "zsh-4.1.1",
            "zsh-4.1.1-test-3",
            "zsg-4.1.1-test-2",
            "zsh-4.1.1-test-1",
            "zsh-4.1.0-dev-7",
            "post-opt-arg",
            "pre-opt-arg",
            "zsh-4.1.0-dev-5",
            "zsh-4.1.0-dev-4",
            "zsh-4.1.0-dev-3",
            "zsh-4.1.0-dev-2",
            "zsh-4.1.0-dev-1",
            "zsh-4.0.1",
            "zsh-4.0.1-pre-5",
            "zsh-4.0.1-pre-4",
            "zsh-4.0.1-pre-3",
            "pre-func-move",
            "zsh-4.0.2-pre-2",
            "zsh-4.0.1-pre-1",
            "zsh-3.1.9-dev-8",
            "zsh-3.1.9-dev-7",
            "zsh-3.1.9-dev-6",
            "zsh-3.1.9-dev-5",
            "zsh-3.1.9-dev-4",
            "zsh-3.1.9-dev-3",
            "zsh-3.1.9-dev-2",
            "zsh-3.1.9-dev-1",
            "zsh-3.1.9",
            "zsh-3.1.8",
            "zsh-3.1.7",
            "zsh-3.1.7-pre-4",
            "zsh-3.1.7-pre-3",
            "zsh-3.1.7-pre-2",
            "zsh-3.1.7-prep-1",
            "zsh-3.1.6-dev-22",
            "zsh-3.1.6-dev-21"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1071.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:23.708867364Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html",
        "https://access.redhat.com/errata/RHSA-2018:3073",
        "https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html",
        "https://security.gentoo.org/glsa/201805-10",
        "https://usn.ubuntu.com/3608-1/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1553531"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "17.10"
                  },
                  {
                    "last_affected": "17.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-1071",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430986,
  "published_at": "2018-03-09T15:29:00.267+00:00"
}