VYPR
High severity7.8NVD Advisory· Published Apr 14, 2026· Updated Apr 23, 2026

CVE-2026-33414

CVE-2026-33414

Description

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/containers/podman/v4Go
>= 4.8.0, <= 4.9.5
github.com/containers/podman/v5Go
< 5.8.25.8.2

Affected products

1

Patches

1
571c842bd357

hyperV: fix powershell path escape

https://github.com/containers/podmanPaul HolzingerMar 19, 2026via ghsa
1 file changed · +2 1
  • pkg/machine/hyperv/stubber.go+2 1 modified
    @@ -694,10 +694,11 @@ func (h HyperVStubber) UpdateSSHPort(_ *vmconfigs.MachineConfig, _ int) error {
     }
     
     func resizeDisk(newSize strongunits.GiB, imagePath *define.VMFile) error {
    -	resize := exec.Command("powershell", []string{"-command", fmt.Sprintf("Resize-VHD \"%s\" %d", imagePath.GetPath(), newSize.ToBytes())}...)
    +	resize := exec.Command("powershell", "-command", fmt.Sprintf("Resize-VHD \"$ENV:IMAGE_PATH\" %d", newSize.ToBytes()))
     	logrus.Debug(resize.Args)
     	resize.Stdout = os.Stdout
     	resize.Stderr = os.Stderr
    +	resize.Env = append(os.Environ(), "IMAGE_PATH="+imagePath.GetPath())
     	if err := resize.Run(); err != nil {
     		return fmt.Errorf("resizing image: %q", err)
     	}
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

1