{
  "id": "CVE-2026-73505",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-73505",
  "published_at": "2026-08-13T14:21:57.231Z",
  "title": "Oh My Posh: Arbitrary command execution via template injection in the path segment",
  "vendor": "JanDeDobbeleer",
  "product": "oh-my-posh",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "JanDeDobbeleer",
        "product": "oh-my-posh",
        "ranges": [
          "\u003c 29.35.1"
        ],
        "fixed_in": [
          "29.35.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade oh-my-posh to 29.35.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
