{"cve":"CVE-2026-73505","nvd":{"published":"2026-08-13T15:20:16.943","modified":"2026-10-24T15:10:00.190","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-94","CWE-1336"],"references":["https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690","https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711","https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1","https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq","https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:35.584907681+00:00"},"epss":{"cve":"CVE-2026-73505","score":0.00212,"percentile":0.11418,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-6xj8-qv9j-xcjq","url":"https://osv.dev/vulnerability/GHSA-6xj8-qv9j-xcjq","summary":"Oh My Posh: Arbitrary command execution via template injection in the path segment","modified":"2026-08-18T15:10:42.879355671Z","packages":[{"ecosystem":"Go","name":"github.com/jandedobbeleer/oh-my-posh","purl":"pkg:golang/github.com/jandedobbeleer/oh-my-posh","ranges":["<29.35.1"],"fixed":["29.35.1"]}]},{"id":"GO-2026-6108","url":"https://osv.dev/vulnerability/GO-2026-6108","summary":"Oh My Posh: Arbitrary command execution via template injection in the path segment in github.com/jandedobbeleer/oh-my-posh","modified":"2026-08-18T15:00:14.529529045Z","packages":[{"ecosystem":"Go","name":"github.com/jandedobbeleer/oh-my-posh","purl":"pkg:golang/github.com/jandedobbeleer/oh-my-posh","ranges":["<29.35.1+incompatible"],"fixed":["29.35.1+incompatible"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}