{"id":"CVE-2026-33414","aliases":["CVE-2026-33414","GHSA-hc8w-h2mf-hp59","GO-2026-5421"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nA command injection vulnerability exists in Podman's HyperV machine backend. The VM image path is inserted into a PowerShell double-quoted string without sanitization, allowing `$()` subexpression injection.\n\n## Affected Code\n\n**File**: `pkg/machine/hyperv/stubber.go:647`\n\n```go\nresize := exec.Command(\"powershell\", []string{\n    \"-command\",\n    fmt.Sprintf(\"Resize-VHD \\\"%s\\\" %d\", imagePath.GetPath(), newSize.ToBytes()),\n}...)\n```\n\n\n\n## Root Cause\n\nPowerShell evaluates `$()` subexpressions inside double-quoted strings before executing the outer command. The `fmt.Sprintf` call places the user-controlled image path directly into double quotes without escaping or sanitization.\n\n## Impact\n\nAn 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 the Windows host. On typical Windows installations, this means SYSTEM-level code execution.\n\n\n## Patch\n\nhttps://github.com/containers/podman/commit/571c842bd357ee626019ea97d030fb772fc654ed\n\nThe affected code is only used on Windows, all other operating systems are not affected by this and can thus ignore the CVE patch.\n\n## Credit\n\nWe like to thank Sang-Hoon Choi (@KoreaSecurity) for reporting this issue to us.","format":"markdown","source":"ghsa"},{"lang":"en","text":"PowerShell Command Injection in Podman HyperV Machine in github.com/containers/podman","format":"markdown","source":"go"},{"lang":"es","text":"Podman es una herramienta para gestionar contenedores OCI y pods. Las versiones 4.8.0 a la 5.8.1 contienen una vulnerabilidad de inyección de comandos en el backend de máquina HyperV en pkg/machine/hyperv/stubber.go, donde la ruta de la imagen de la VM se inserta en una cadena de PowerShell entre comillas dobles sin sanitización, permitiendo la inyección de subexpresiones $(). Debido a que PowerShell evalúa subexpresiones dentro de cadenas entre comillas dobles antes de ejecutar el comando externo, un atacante que puede controlar la ruta de la imagen de la VM a través de un nombre de máquina o directorio de imagen manipulado puede ejecutar comandos arbitrarios de PowerShell con los privilegios del proceso de Podman. En instalaciones típicas de Windows, esto significa ejecución de código a nivel de SYSTEM, y solo Windows se ve afectado ya que el código es exclusivo del backend de HyperV. Este problema ha sido parcheado en la versión 5.8.2.","source":"nvd"}],"published":"2026-04-14T22:30:24.000Z","modified":"2026-09-10T03:51:01.905Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4,"rating":"MEDIUM"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":">= 4.8.0, < 5.8.2","status":"affected"}],"vendor":"containers","product":"podman","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"5.8.2-1.hum1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"podman-main","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"podman","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"container-tools:rhel8/podman","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"podman","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"podman","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"rhcos","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.8.0","status":"affected","lastAffected":"4.9.5"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.8.2"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"4.8.0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.8.2"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"go"},{"ranges":[{"status":"affected","introduced":"4.8.0","fixed":"5.8.2"}],"vendor":"podman_project","product":"podman","cpe":"cpe:2.3:a:podman_project:podman:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/containers/podman/security/advisories/GHSA-hc8w-h2mf-hp59","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containers/podman/commit/571c842bd357ee626019ea97d030fb772fc654ed","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-33414","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2458522","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33414.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:8211","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33414","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/containers/podman","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-16T13:57:01.669Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33414","url":"https://www.cve.org/CVERecord?id=CVE-2026-33414","licence":"CVE Terms of Use","modified":"2026-07-15T01:06:27.842Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hc8w-h2mf-hp59","url":"https://github.com/advisories/GHSA-hc8w-h2mf-hp59","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:01.905Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5421","url":"https://pkg.go.dev/vuln/GO-2026-5421","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:12.563Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33414","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33414","licence":"Public domain","modified":"2026-07-24T23:10:00.563Z"}],"updatedAt":"2026-11-25T22:59:18.803Z","epss":{"score":0.00645,"percentile":0.52249,"date":"2026-12-01T12:00:22.000Z"}}