{"id":"CVE-2026-73505","published":"2026-08-13T14:21:57Z","modified":"2026-08-13T15:18:34Z","title":"Oh My Posh: Arbitrary command execution via template injection in the path segment","vendor":"JanDeDobbeleer","product":"oh-my-posh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.06572,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711","tags":["x_refsource_MISC"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690","tags":["x_refsource_MISC"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.31},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"jandedobbeleer","affectedVersions":[{"vendor":"JanDeDobbeleer","product":"oh-my-posh","versions":["< 29.35.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-13T15:18:06.808055Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/jandedobbeleer/oh-my-posh","vulnerableRanges":["<29.35.1","<29.35.1+incompatible"],"patched":["29.35.1","29.35.1+incompatible"],"from":["GHSA-6xj8-qv9j-xcjq","GO-2026-6108"],"provenance":"source"}],"summary":{"text":"Oh My Posh, a cross-platform shell prompt renderer, contains a template injection flaw in its path segment (src/segments/path.go, setStyle()), where raw folder names are passed unescaped into the template engine. An attacker who can create a directory with a crafted name that includes a Go template expression can run arbitrary operating system commands as the current user, but only when the prompt renders inside that directory or one of its subdirectories, which requires user interaction such as navigating there.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:15Z"},"euvd":{"id":"EUVD-2026-58078","exploited":false,"provenance":"source"}}