Skip to content
Heist/ feed
Back to feed
High

Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-25077
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:09 UTC · Revision 1

Source evidence

Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates

core-osv · Original source

Published 8 May 2026, 12:21 UTC

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.

osv:CVE-2026-25077
Complete source record
{
  "id": "82a9988c70155b8c8c8280bba7868b8ff3460aa8869c08fb7e8b66ea593f4e19",
  "url": "https://osv.dev/vulnerability/CVE-2026-25077",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates",
    "summary": "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.",
    "evidence": "osv:CVE-2026-25077",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-25077",
      "aliases": [
        "CVE-2026-25077"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/cloudstack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5dada1f7ed5fb6a8ee261c763f744583e586f8bf"
                },
                {
                  "fixed": "c8599040b4756034c7105806a53d2c99eb7ea0fe"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.11.0.0"
                      },
                      {
                        "fixed": "4.20.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25077.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.367434729Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25077.json",
        "https://lists.apache.org/thread/n8mt5b7wkpysstb8w7rr9f02kc5cq2xm",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-25077"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.11.0"
                  },
                  {
                    "last_affected": "4.20.2.0"
                  },
                  {
                    "introduced": "4.21.0.0"
                  },
                  {
                    "last_affected": "4.22.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25077.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-25077",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510155,
  "published_at": "2026-05-08T12:21:27.034+00:00"
}