{"id":"CVE-2026-73505","revision":"8897b38832724926934bb34a4dd32294","records":[{"revision":"8897b38832724926934bb34a4dd32294","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-73505","aliases":[],"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 user whenever the prompt rendered inside that directory or a descendant. This issue is fixed in version 29.35.1.","state":0,"publishedAt":"2026-08-13T14:21:57.231+00:00","modifiedAt":"2026-08-13T15:18:34.824+00:00","affected":[{"ecosystem":"Vendor product","name":"oh-my-posh","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"JanDeDobbeleer\",\n                    \"product\": \"oh-my-posh\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 29.35.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq","https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711","https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690","https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-73505","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-73505","identifiers":["CVE-2026-73505"]},"retained":false,"historicalAffected":[]}],"coverage":[]}