CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (8.8) in ohmyzsh ohmyzsh. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExplain CVE-2026-50187 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-50187?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-50187?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-50187 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| ohmyzsh | < 2026-05-28 |
Red Hat rates this Important.
This is an Important arbitrary code execution flaw in the `dotenv` plugin of Oh My Zsh. The vulnerability allows an attacker to execute arbitrary shell commands with the user's privileges when a user navigates into a directory containing a specially crafted `.env` file.
To mitigate this issue, disable the `dotenv` plugin in Oh My Zsh if it is not explicitly required. This can be achieved by removing `dotenv` from the `plugins` array in the `~/.zshrc` file. Alternatively, ensure that `ZSH_DOTENV_PROMPT` is not set to `false` to require explicit user confirmation before sourcing `.env` files, and exercise caution when changing directories into untrusted locations. After modifying `~/.zshrc`, restart the Zsh session for changes to take effect.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/ansible-devspaces-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-50187.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.