# CVE-2026-73505: Oh My Posh: Arbitrary command execution via template injection in the path segment

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T22:36:11.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-6xj8-qv9j-xcjq, GO-2026-6108
- Weaknesses: CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- JanDeDobbeleer oh-my-posh: < 29.35.1
- github.com/jandedobbeleer/oh-my-posh (Go): before 29.35.1; before 29.35.1+incompatible

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq> (exploit, advisory, web)
- <https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711>
- <https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690> (web)
- <https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1> (web)
- <https://github.com/JanDeDobbeleer/oh-my-posh> (package)
- <https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0> (web)

## Sources

- CVE List: [CVE-2026-73505](https://www.cve.org/CVERecord?id=CVE-2026-73505), CVE Terms of Use, modified 2026-08-13
- GitHub Advisory Database: [GHSA-6xj8-qv9j-xcjq](https://github.com/advisories/GHSA-6xj8-qv9j-xcjq), CC-BY-4.0, modified 2026-08-18
- Go Vulnerability Database: [GO-2026-6108](https://pkg.go.dev/vuln/GO-2026-6108), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-73505](https://nvd.nist.gov/vuln/detail/CVE-2026-73505), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73505 · Whole record: https://cve.day/CVE-2026-73505.json · Rebuilt by cve.day 2026-11-25T22:59:32.770Z
