CVEfocus › CVE database › CVE-2024-31144

CVE-2024-31144Xapi: Metadata injection attack against backup/restore functionality

CVSS 3.8 LowEPSS 0.3% (higher than 15% of CVEs)Published 2025-02-14Updated 2025-04-26Assigner: XEN

For a brief summary of Xapi terminology, see: https://xapi-project.github.io/xen-api/overview.html#object-model-overview Xapi contains functionality to backup and restore metadata about Virtual Machines and Storage Repositories (SRs). The metadata itself is stored in a Virtual Disk Image (VDI) inside an SR. This is used for two purposes; a general backup of metadata (e.g. to recover from a host failure if the filer is still good), and Portable SRs (e.g. using an external hard drive to move VMs to another host). Metadata is only restored as an explicit administrator action, but occurs in cases where the host has no information about the SR, and must locate the metadata VDI in order to retrieve the metadata. The metadata VDI is located by searching (in UUID alphanumeric order) each VDI, mounting it, and seeing if there is a suitable metadata file present. The first matching VDI is deemed to be the metadata VDI, and is restored from. In the general case, the content of VDIs are controlled by the VM owner, and should not be trusted by the host administrator. A malicious guest can manipulate its disk to appear to be a metadata backup. A guest cannot choose the UUIDs of its VDIs, but a guest with one disk has a 50% chance of sorting ahead of the legitimate metadata backup. A guest with two disks has a 75% chance, etc.

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10xenFix pendingUBUNTU-CVE-2024-31144
Ubuntu 26.04xenUnder investigationUBUNTU-CVE-2024-31144
Ubuntu 25.10xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2024-31144
Ubuntu 24.04xenUnder investigationUBUNTU-CVE-2024-31144
Ubuntu 22.04xenUnder investigationUBUNTU-CVE-2024-31144
Ubuntu 20.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2024-31144
Ubuntu 18.04xenFix pendingUBUNTU-CVE-2024-31144
Ubuntu 16.04xenFix pendingUBUNTU-CVE-2024-31144

What the vendor says

As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Not using the metadata restore functionality avoids the vulnerability.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.