Read the docs
TI-2026-51615 Aliases CVE-2026-73505GHSA-6xj8-qv9j-xcjq

Oh My Posh: Arbitrary command execution via template injection in the path segment

Priority HIGH 69CWE-1336Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00212 11th percentileScored 2026-11-07
Fix Fixed oh-my-posh (JanDeDobbeleer): 29.35.1github.com/jandedobbeleer/oh-my-posh (Go): 29.35.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
JanDeDobbeleeroh-my-poshbefore 29.35.129.35.1Patch availableCNA
—github.com/jandedobbeleer/oh-my-posh (Go)before 29.35.129.35.1Patch availableGHSA-6xj8-qv9j-xcjq
  • oh-my-posh VendorJanDeDobbeleer Affected before 29.35.1 Fixed in 29.35.1 Patch available CNA
  • github.com/jandedobbeleer/oh-my-posh (Go) Vendor— Affected before 29.35.1 Fixed in 29.35.1 Patch available GHSA-6xj8-qv9j-xcjq

Remediation

  • Fix · CNA oh-my-posh (JanDeDobbeleer) Fixed in 29.35.1
  • Fix · GHSA-6xj8-qv9j-xcjq github.com/jandedobbeleer/oh-my-posh (Go) Fixed in 29.35.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-73505
  2. 2026-10-03 Alias added: GHSA-6xj8-qv9j-xcjq

References

  • TI-2026-51616 Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data CVSS 3.1MEDIUM 6.1

Sources