CVE-2026-33414: Github.com/containers/podman/v4 PowerShell Command Injection Vulnerability
MODERATECVE-2026-33414 is a MODERATE (CVSS 7.8) powershell command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Github.com/containers/podman/v4 libraries in the Go ecosystem. The issue involves powershell command injection in podman hyperv machine. Remediation is available by upgrading affected packages to version 5.8.2.
CVE-2026-33414 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-33414
To remediate this vulnerability, upgrade all affected Github.com/containers/podman/v4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/containers/podman/v4 to Latest secure release
Upgrade github.com/containers/podman/v5 to 5.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/containers/podman/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-33414, inspect your project dependencies for Github.com/containers/podman/v4:
inspect dependencies for github.com/containers/podman/v4
Analyze the terminal output to locate any version of Github.com/containers/podman/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.8.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Github.com/containers/podman/v4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-33414 Affected Github.com/containers/podman/v4 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containers/podman/v4
|
Go |
≥ 4.8.0
≤ 4.9.5
|
|
|
github.com/containers/podman/v5
|
Go |
< 5.8.2
|
5.8.2
|
References
Frequently Asked Questions
What is CVE-2026-33414?
Which Github.com/containers/podman/v4 versions are affected?
What version fixes CVE-2026-33414?
Is github.com/containers/podman/v4 affected?
Is github.com/containers/podman/v5 affected?
What is the CVSS score of CVE-2026-33414?
What CWE is associated with CVE-2026-33414?
How can I check Go dependencies for CVE-2026-33414?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hc8w-h2mf-hp59",
"modified" : "2026-04-27T16:31:35Z",
"published" : "2026-04-14T22:30:24Z",
"aliases" : [ "CVE-2026-33414" ],
"summary" : "PowerShell Command Injection in Podman HyperV Machine",
"details" : "## 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
}, {
"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" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containers/podman/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.8.0"
}, {
"last_affected" : "4.9.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containers/podman/v5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.8.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.8.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/containers/podman/security/advisories/GHSA-hc8w-h2mf-hp59"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33414"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/podman/commit/571c842bd357ee626019ea97d030fb772fc654ed"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containers/podman"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-14T22:30:24Z",
"nvd_published_at" : "2026-04-14T23:16:27Z"
}
}