Skip to content
Heist/ feed
Back to feed
Medium

PowerShell Command Injection in Podman HyperV Machine

Type: advisorySources: OSV

Podman is a tool for managing OCI containers and pods. Versions 4.8.0 through 5.8.1 contain a command injection vulnerability in the HyperV machine backend in pkg/machine/hyperv/stubber.go, where the VM image path is inserted into a PowerShell double-quoted string without sanitization, allowing $() subexpression injection. Because PowerShell evaluates subexpressions inside double-quoted strings before executing the outer command, an attacker who can control the VM image path through a crafted machine name or image directory can execute arbitrary PowerShell commands with the privileges of the Podman process. On typical Windows installations this means SYSTEM-level code execution, and only Windows is affected as the code is exclusive to the HyperV backend. This issue has been patched in version 5.8.2.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-33414
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:06 UTC · Revision 1

Source evidence

PowerShell Command Injection in Podman HyperV Machine

core-osv · Original source

Published 14 Apr 2026, 22:42 UTC

Podman is a tool for managing OCI containers and pods. Versions 4.8.0 through 5.8.1 contain a command injection vulnerability in the HyperV machine backend in pkg/machine/hyperv/stubber.go, where the VM image path is inserted into a PowerShell double-quoted string without sanitization, allowing $() subexpression injection. Because PowerShell evaluates subexpressions inside double-quoted strings before executing the outer command, an attacker who can control the VM image path through a crafted machine name or image directory can execute arbitrary PowerShell commands with the privileges of the Podman process. On typical Windows installations this means SYSTEM-level code execution, and only Windows is affected as the code is exclusive to the HyperV backend. This issue has been patched in version 5.8.2.

osv:CVE-2026-33414
Complete source record
{
  "id": "393521248356729e756698383a3f69dd6a9f22ddcc57d8ebc78175315f62d726",
  "url": "https://osv.dev/vulnerability/CVE-2026-33414",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PowerShell Command Injection in Podman HyperV Machine",
    "summary": "Podman is a tool for managing OCI containers and pods. Versions 4.8.0 through 5.8.1 contain a command injection vulnerability in the HyperV machine backend in pkg/machine/hyperv/stubber.go, where the VM image path is inserted into a PowerShell double-quoted string without sanitization, allowing $() subexpression injection. Because PowerShell evaluates subexpressions inside double-quoted strings before executing the outer command, an attacker who can control the VM image path through a crafted machine name or image directory can execute arbitrary PowerShell commands with the privileges of the Podman process. On typical Windows installations this means SYSTEM-level code execution, and only Windows is affected as the code is exclusive to the HyperV backend. This issue has been patched in version 5.8.2.",
    "evidence": "osv:CVE-2026-33414",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-33414",
      "aliases": [
        "CVE-2026-33414",
        "GHSA-hc8w-h2mf-hp59",
        "GO-2026-5421"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/podman-container-tools/podman",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c4dfcf14874479e34b3f312f089fc5840e306258"
                },
                {
                  "fixed": "5b263b5f5b48004a87caac44e67349a8266d9ef4"
                },
                {
                  "fixed": "571c842bd357ee626019ea97d030fb772fc654ed"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:podman_project:podman:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.8.0"
                      },
                      {
                        "fixed": "5.8.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "571c842bd357ee626019ea97d030fb772fc654ed"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33414.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.738174638Z",
      "provider": "osv",
      "references": [
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33414.json",
        "https://access.redhat.com/errata/RHSA-2026:8211",
        "https://access.redhat.com/security/cve/CVE-2026-33414",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33414.json",
        "https://github.com/containers/podman/security/advisories/GHSA-hc8w-h2mf-hp59",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-33414",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2458522",
        "https://github.com/containers/podman/commit/571c842bd357ee626019ea97d030fb772fc654ed"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33414.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-33414",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509374,
  "published_at": "2026-04-14T22:42:19.822+00:00"
}