CVE-2026-73505
Received Received - Intake

Path Traversal and Command Injection in Oh My Posh

Vulnerability report for CVE-2026-73505, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: GitHub, Inc.

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
jan_de_dobbeleer oh_my_posh to 29.35.1 (exc)
oh_my_posh oh_my_posh 29.35.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Oh My Posh (CVE-2026-73505) allows command injection via malicious directory names. When a folder contains a Go template expression like {{ cmd `whoami` }}, Oh My Posh evaluates it during prompt rendering, executing arbitrary OS commands as the current user. The issue occurs because untrusted filesystem data is passed to a template engine with dangerous functions exposed.

Detection Guidance

Check Oh My Posh version with 'oh-my-posh version'. If it is below 29.35.1, the system is vulnerable. Inspect directory names for Go template expressions like '{{ cmd `whoami` }}' or similar patterns in path segments.

Impact Analysis

An attacker could trick you into navigating into a malicious directory, causing the prompt to execute commands like file writes, data theft, or system compromise. This could happen via cloned repositories, archives, or network shares containing folders with crafted names.

Compliance Impact

This vulnerability could lead to unauthorized command execution, potentially violating data protection requirements under GDPR (e.g., unauthorized access to personal data) or HIPAA (e.g., unauthorized access to protected health information). Organizations using vulnerable versions may face compliance breaches.

Mitigation Strategies

Upgrade Oh My Posh to version 29.35.1 or later immediately. Avoid using untrusted directory names containing template syntax. Review and sanitize folder names in your environment.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-73505. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart