{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-73505","id":"CVE-2026-73505","title":"Oh My Posh: Arbitrary command execution via template injection in the path segment","description":"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 u","descriptionLong":"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","updated":"2026-10-28T02:30:32.621554531Z","reserved":"2026-08-12T19:00:33.736Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["JanDeDobbeleer oh-my-posh"],"affectedProducts":[{"vendor":"JanDeDobbeleer","product":"oh-my-posh","defaultStatus":null,"versions":[{"version":"< 29.35.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/jandedobbeleer/oh-my-posh","purl":"pkg:golang/github.com/jandedobbeleer/oh-my-posh","ranges":["<29.35.1","<29.35.1+incompatible"],"fixed":["29.35.1","29.35.1+incompatible"],"advisory":"GHSA-6xj8-qv9j-xcjq"}],"cwes":["CWE-94","CWE-1336"],"aliases":["GHSA-6xj8-qv9j-xcjq","GO-2026-6108"],"references":[{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73505.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73505","tags":["advisory"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh","tags":["package"]},{"url":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00212,"epssPercentile":0.1164,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-73505","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73505","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-73505","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6xj8-qv9j-xcjq","ok":true,"note":"GHSA-6xj8-qv9j-xcjq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-73505","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}