CVE-2026-25077 Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates

High 8.8 Published Updated

Attackers can execute arbitrary code on KVM hosts by registering malicious templates due to missing filename sanitization in Apache CloudStack.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-25077?

CVE-2026-25077 is a high-severity command injection vulnerability in Apache Cloudstack, published on 8 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Account users are allowed by default to register templates to be downloaded directly to the primary storage for deploying instances using the KVM hypervisor. Due to missing file name sanitization, an attacker can register malicious templates to execute arbitrary code on the KVM hosts. This can result in the compromise of resource integrity and confidentiality, data loss, denial of service, and availability of the KVM-based infrastructure managed by CloudStack.

Users are recommended to upgrade to Apache CloudStack versions 4.20.3.0 or 4.22.0.1, or later, which fixes this issue.

Weakness: CWE-94

Which versions are affected by CVE-2026-25077?

It affects 1 product.

Products include Apache Cloudstack.

How do I fix CVE-2026-25077?

No fix has been published for CVE-2026-25077 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-25077 being exploited?

There is no known exploitation of CVE-2026-25077 in the wild and no public exploit code.

All Apache Cloudstack vulnerabilities

Sources

Also known as GHSA-vhgc-6rjx-f6vv.

Is CVE-2026-25077 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free