CVE-2026-73506
Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
Check your servers for CVE-2026-73506
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-73506 affects oh-my-posh, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, write(s rune) in src/terminal/writer.go emitted attacker-controlled current directory names and Git metadata, including Commit.Subject, Commit.Author.Name, Commit.Author.Email, and RawUpstreamURL, without removing C0/C1 terminal control characters such as ESC, BEL, CSI, and OSC, allowing terminal escape sequence injection during prompt rendering that could overwrite the clipboard, spoof the prompt or screen, manipulate the window title, or disrupt the terminal. This issue is fixed in version 29.35.1.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.12% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| oh-my-posh |
affected < 29.35.1
|
Is my server affected?
Find the installed version of oh-my-posh and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i oh-my-posh
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-73506 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-73506RHEL, Rocky, Alma, Fedora
rpm -q oh-my-posh
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-73506Alpine
apk list --installed | grep -i oh-my-poshWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-73506
trivy image --scanners vuln IMAGE | grep CVE-2026-73506
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Exploits and proof of concept
- https://github.com/Budibase/budibase/security/advisories/GHSA-fcrw-f7gg-6g9f github.com · exploit
Other references
- https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711 github.com
- https://github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224 github.com
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1 github.com
Source: the record CVE-2026-73506 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse