CVE-2024-45219
published high CVSS 3.1 · 8.5Apache CloudStack: Uploaded and registered templates and volumes can be used to abuse KVM-based infrastructure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache CloudStack4.0.0 through 4.18.2.3 · 4.19.0.0 through 4.19.1.1 · Other versions: unaffected | Affected | Not stated | apache |
| apache_software_foundation | — | apache_cloudstack4.0.0 through 4.18.2.3 · 4.19.0.0 through 4.19.1.1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
Description
Account users in Apache CloudStack by default are allowed to upload and register templates for deploying instances and volumes for attaching them as data disks to their existing instances. Due to missing validation checks for KVM-compatible templates or volumes in CloudStack 4.0.0 through 4.18.2.3 and 4.19.0.0 through 4.19.1.1, an attacker that can upload or register templates and volumes, can use them to deploy malicious instances or attach uploaded volumes to their existing instances on KVM-based environments and exploit this to gain access to the host filesystems that could result in the compromise of resource integrity and confidentiality, data loss, denial of service, and availability of KVM-based infrastructure managed by CloudStack. Users are recommended to upgrade to Apache CloudStack 4.18.2.4 or 4.19.1.2, or later, which addresses this issue. Additionally, all user-uploaded or registered KVM-compatible templates and volumes can be scanned and checked that they are flat files that should not be using any additional or unnecessary features. For example, operators can run this on their secondary storage(s) and inspect output. An empty output for the disk being validated means it has no references to the host filesystems; on the other hand, if the output for the disk being validated is not empty, it might indicate a compromised disk. for file in $(find /path/to/storage/ -type f -regex [a-f0-9\-]*.*); do echo "Retrieving file [$file] info. If the output is not empty, that might indicate a compromised disk; check it carefully."; qemu-img info -U $file | grep file: ; printf "\n\n"; done The command can also be run for the file-based primary storages; however, bear in mind that (i) volumes created from templates will have references for the templates at first and (ii) volumes can be consolidated while migrating, losing their references to the templates. Therefore, the command execution for the primary storages can show both false positives and false negatives. For checking the whole template/volume features of each disk, operators can run the following command: for file in $(find /path/to/storage/ -type f -regex [a-f0-9\-]*.*); do echo "Retrieving file [$file] info."; qemu-img info -U $file; printf "\n\n"; done
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- apache · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache CloudStack | 4.0.0 through 4.18.2.3 (affected · semver)4.19.0.0 through 4.19.1.1 (affected · semver)Default: unaffected | apache · cna |
| apache_software_foundation | apache_cloudstack | 4.0.0 through 4.18.2.3 (affected · semver)4.19.0.0 through 4.19.1.1 (affected · semver)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-20 CWE-20 Improper Input Validation
- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
4- http://www.openwall.com/lists/oss-security/2024/10/15/2
- https://cloudstack.apache.org/blog/security-release-advisory-4.18.2.4-4.19.1.2
- https://lists.apache.org/thread/ktsfjcnj22x4kg49ctock3d9tq7jnvlo
- https://www.shapeblue.com/shapeblue-security-advisory-apache-cloudstack-security-releases-4-18-2-4-and-4-19-1-2/
Provider assertions
3apache · cna
Apache CloudStack: Uploaded and registered templates and volumes can be used to abuse KVM-based infrastructure
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5c3f9425f9a72225d1425ed1d75330e46c524a5df9b2fa0ddcad6172b02bd95c
- Ingested
- 23 Sep 2026, 08:27:32 UTC
- Source record
- Official CVE record