CloudstackApplication · Apache

CVE-2024-45219

HIGH · 8.5 CVSS v3.1 Published 2024-10-16
Fix available
A fix is available. Upgrade to 4.18.2.4 / 4.19.1.2 or later.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Missing validation checks in Apache CloudStack allow account users to upload or register malicious KVM-compatible templates and volumes that contain filesystem path references. When deployed or attached in KVM-based environments, these templates/volumes enable attackers to escape instance isolation and access the host filesystem, compromising the hypervisor and underlying infrastructure.

MitigationUpgrade to Apache CloudStack 4.18.2.4 or 4.19.1.2 or later to patch the validation vulnerability; additionally, scan all existing user-uploaded templates and volumes on secondary storage using qemu-img to identify and remove disks with host filesystem references.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
CloudstackApplication
Affected:>= 4.0.0, < 4.18.2.4>= 4.19.0.0, < 4.19.1.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify your CloudStack version
    Locate the CloudStack management server installation and retrieve its version number (commonly via package manager, about page in UI, or admin API call)
    Affected if The installed version falls within >= 4.0.0 to < 4.18.2.4 OR >= 4.19.0.0 to < 4.19.1.2
  2. Confirm KVM hypervisor is in use
    Check the CloudStack infrastructure configuration to determine if KVM is enabled as a hypervisor type for any zone, cluster, or host
    Affected if KVM-based zones, clusters, or hosts are present in the CloudStack environment
  3. Verify user template/volume upload is permitted
    Examine CloudStack account permissions and service offerings to determine if non-admin users have the ability to upload or register custom templates or volumes
    Affected if Regular user accounts can upload, register, or add their own templates or volumes to the system
  4. Inspect stored templates and volumes for path references
    On secondary storage, use disk inspection tools (such as qemu-img or similar utilities capable of reading disk image metadata) to examine user-uploaded KVM-compatible templates and volumes for embedded host filesystem path references
    Affected if Any user-uploaded templates or volumes on secondary storage contain references to host filesystem paths outside the intended guest filesystem

You are affected if your CloudStack version is vulnerable AND KVM hypervisors are in use AND users can upload templates/volumes AND those uploaded assets contain host filesystem path references.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.18.2.4 / 4.19.1.2 or later
Fixed in 4.18.2.44.19.1.2
Interim mitigation

Upgrade to Apache CloudStack 4.18.2.4 or 4.19.1.2 or later to patch the validation vulnerability; additionally, scan all existing user-uploaded templates and volumes on secondary storage using qemu-img to identify and remove disks with host filesystem references.

Recommended fix High confidence

4.18.2.4 or 4.19.1.2 (or later)

  1. Plan and schedule an upgrade to Apache CloudStack 4.18.2.4 or 4.19.1.2 (or later) based on your current major version branch
  2. Backup the CloudStack database and all critical configuration files before proceeding with the upgrade
  3. Stop CloudStack services (cloudstack-management, cloudstack-agents) on all nodes
  4. Follow the official Apache CloudStack upgrade documentation for your current version to upgrade to the target fixed release
  5. Start CloudStack services after the upgrade and verify all components are running correctly
  6. As an additional security measure, scan all user-uploaded KVM templates and volumes on secondary storage using: 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
  7. Review any disks with non-empty 'file:' references in the output that might indicate compromised disks
Caveat Review Apache CloudStack release notes and upgrade guide for any breaking changes between your current version and the target fixed release

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Cloudstack Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,200
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-45219 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-45219 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data