Apache CloudStack: Uploaded and registered templates and volumes can be used to abuse KVM-based infrastructure
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Apache CloudStack — cloudstack.apache.org/blog/security-release-advisory-4.18.2…
3 records Highest priority Priority MEDIUM 2 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2024-30683 Apache CloudStack: Request origin validation bypass makes account takeover possiblePriority MEDIUM 41
- TI-2024-30505 Apache CloudStack: Incomplete session invalidation on web interface logoutPriority LOW 33
Timeline
- 2026-10-02 Threatist record created from CVE-2024-45219
- 2026-10-03 Alias added: GHSA-mp22-wph9-qgqx
References
More Apache Cloudstack vulnerabilities
- TI-2024-27459 Apache CloudStack: SAML Signature Exclusion CVSS 3.1HIGH 8.1
- TI-2024-25607 Apache CloudStack: Unauthenticated cluster service port leads to remote execution CVSS 3.1CRITICAL 9.8
- TI-2022-16183 Apache CloudStack SAML Single Sign-On XXE CVSS 3.1CRITICAL 9.8
- TI-2012-03843 Citrix Cloud.com CloudStack, and Apache CloudStack pre-release, allows remote attackers… CVSS 2.0HIGH 10.0
- TI-2024-26763 Apache CloudStack: Integration API service uses dynamic port when disabled CVSS 3.1CRITICAL 9.8
- TI-2016-05854 Apache CloudStack 4.1 to 4.8.1.0 and 4.9.0.0 contain an API call designed to allow a user… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-45219 · CVE Program
- CVE-2024-45219 · NVD
- FIRST EPSS
- GHSA-mp22-wph9-qgqx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences