CVE-2018-0502

An issue was discovered in zsh before 5.6

published September 5, 2018

CVSS
—
EPSS
2%
Percentile
84.4
In the wild
Unconfirmed
What it is

⚠️ A mishandled script in zsh could lead to unexpected program execution! Imagine your coworkers calling in a delivery without even checking the menu first. 🍕 It's like having a restaurant where the chef starts cooking a dish based solely on the ingredients listed on the second line of a recipe — no one checks if the first ingredient is safe! An attacker could exploit this flaw to run any program they choose if they can place it on the second line of a script, potentially compromising your entire system. While it hasn’t been widely exploited, the thought alone is enough to raise eyebrows!

Put simply

It's like having a restaurant where the chef starts cooking a dish based solely on the ingredients listed on the second line of a recipe — no one checks if the first ingredient is safe! This vulnerability in zsh versions before 5.6 mishandles the execution of script files starting with a '#!' line, which could allow an execve call to a program specified on the second line, resulting in unintended command execution.

What to do

An attacker could exploit this flaw to run any program they choose if they can place it on the second line of a script, potentially compromising your entire system. While it hasn’t been widely exploited, the thought alone is enough to raise eyebrows! To protect yourself, upgrade zsh to version 5.6 or later immediately. Regularly review your scripts for any unusual content, especially in the first few lines, to ensure no sneaky commands are hiding there! You've got this! With a quick update, you're on your way to solidifying your security posture! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02487 · 84.4th percentile
Published
2018-09-05T07:00Z
EPSS history
Timeline
  • 05 SEP 07:00Z
    An issue was discovered in zsh before 5.6
    cvelistv5