{"id":"CVE-2026-50187","published":"2026-08-18T15:09:51Z","modified":"2026-08-18T17:46:49Z","title":"Oh My Zsh: Arbitrary Code Execution in oh-my-zsh dotenv plugin via malicious .env files","vendor":"ohmyzsh","product":"ohmyzsh","tier":"tail","description":{"text":"Oh My Zsh is a community-driven framework for managing Zsh configuration. Prior to 2026-05-28, the dotenv plugin in plugins/dotenv/dotenv.plugin.zsh passes ZSH_DOTENV_FILE to source after a directory change into a folder containing a .env file, allowing syntactically valid shell commands in the file to execute with the current account's privileges, including without a prompt when ZSH_DOTENV_PROMPT=false or after the default prompt accepts an empty Enter response. This issue is fixed in versions released after 2026-05-28.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00539,"percentile":0.46314,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/ohmyzsh/ohmyzsh/security/advisories/GHSA-3rgh-p3mg-rjqg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ohmyzsh/ohmyzsh/pull/13778","tags":["x_refsource_MISC"]},{"url":"https://github.com/ohmyzsh/ohmyzsh/commit/d170d18746bb06db7b2fc97b67e281597a3fc152","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.26},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"ohmyzsh","affectedVersions":[{"vendor":"ohmyzsh","product":"ohmyzsh","versions":["< 2026-05-28"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-18T17:28:31.966910Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-60954","exploited":false,"provenance":"source"}}