CVE-2026-73505 json
Oh My Posh: Arbitrary command execution via template injection in the path segment
published 2026-07-24 3 mo ago modified 2026-10-24 16 d ago also GHSA-6xj8-qv9j-xcjq , GO-2026-6108 , EUVD-2026-58078
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, the setStyle() function in src/segments/path.go passed pt.Path, which includes raw folder names, to template.Render, whose function map exposes cmd, so an attacker-controlled directory name containing a Go template expression could execute arbitrary operating system commands as the current user whenever the prompt rendered inside that directory or a descendant. This issue is fixed in version 29.35.1.
Patch / fix
- go github.com/jandedobbeleer/oh-my-posh 29.35.1, 29.35.1+incompatible
- govulncheck-vulndb SLES for SAP applications 16.0, SLES 16.0 0.0.20260827T195228-160000.1.1
suse advisories SUSE-SU-2026:23625-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260827T195228-160000.1.1
opensuse advisories openSUSE-SU-2026:21761-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-73505 updated cvss 7.8
github.com/jandedobbeleer/oh-my-posh: Oh My Posh: Arbitrary command execution via template injection in directory names
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 mo ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/jandedobbeleer/oh-my-posh | <29.35.1 <29.35.1+incompatible |
29.35.1 29.35.1+incompatible |
Affected products
- JanDeDobbeleer oh-my-posh
Classification
References
- github.com /JanDeDobbeleer/oh-my-posh/pull/7711
-
github.com
/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690
web
-
github.com
/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq
exploit, web, advisory
-
github.com
/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1
web
-
github.com
/JanDeDobbeleer/oh-my-posh
package
-
github.com
/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0
web
Sources
- CVE List CVE-2026-73505
- GitHub Advisory GHSA-6xj8-qv9j-xcjq
- NVD CVE-2026-73505
- OSV GO-2026-6108
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.