{"id":"CVE-2026-73505","aliases":["GHSA-6xj8-qv9j-xcjq"],"url":"https://o3.security/vulnerability/CVE-2026-73505","summary":"Oh My Posh: Arbitrary command execution via template injection in the path segment","details":"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.","published":"2026-08-13T14:21:57.231Z","modified":"2026-08-14T04:05:04.622346977Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/jandedobbeleer/oh-my-posh","fixedVersion":"29.35.1"}],"fix":{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690","label":"JanDeDobbeleer/oh-my-posh@88ddbe0"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73505.json"},{"type":"FIX","url":"https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690"},{"type":"FIX","url":"https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711"},{"type":"WEB","url":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1"},{"type":"ADVISORY","url":"https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73505"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-14T04:05:04.622346977Z"}}