Bug 2516075 - CVE-2026-73505 oh-my-posh: Oh My Posh: Arbitrary command execution via template injection in directory names [fedora-all]
Summary: CVE-2026-73505 oh-my-posh: Oh My Posh: Arbitrary command execution via templa...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: oh-my-posh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: solomoncyj
QA Contact:
URL:
Whiteboard: {"flaws": ["db19e2dd-df62-43d4-8c8b-f...
Depends On:
Blocks: CVE-2026-73505
TreeView+ depends on / blocked
 
Reported: 2026-08-14 16:12 UTC by Laura Pardo
Modified: 2026-08-14 16:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laura Pardo 2026-08-14 16:12:37 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.


Note You need to log in before you can comment on or make changes to this bug.