REDHAT-BUG-2458522: Command Injection

Published Apr 14, 2026
·
Updated

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 Software

2 affected components
Podman Podman>=4.8.0<=5.8.1
Podman Podman=5.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade podman to a version that resolves this vulnerability.

    Fixed in 5.8.2

Event History

Apr 14, 2026
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2458522?

The severity of REDHAT-BUG-2458522 is high with a CVSS score of 7.

2

What is the nature of the vulnerability in REDHAT-BUG-2458522?

REDHAT-BUG-2458522 describes a command injection vulnerability in the HyperV machine backend of Podman.

3

How do I fix REDHAT-BUG-2458522?

To fix REDHAT-BUG-2458522, upgrade Podman to a version beyond 5.8.1.

4

Which versions of Podman are affected by REDHAT-BUG-2458522?

Podman versions 4.8.0 through 5.8.1 are affected by REDHAT-BUG-2458522.

5

What components of Podman are vulnerable in REDHAT-BUG-2458522?

The vulnerability in REDHAT-BUG-2458522 specifically affects the HyperV machine backend in the file pkg/machine/hyperv/stubber.go.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203