CVE-2024-31144

Xapi: Metadata injection attack against backup/restore functionality

Description

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.

Remediation

Workaround:

  • Not using the metadata restore functionality avoids the vulnerability.
3.8
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.01%
Affected: Xen Project Xen
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-31144?
CVE-2024-31144 has been scored as a low severity vulnerability.
How to fix CVE-2024-31144?
As a workaround for remediating CVE-2024-31144: Not using the metadata restore functionality avoids the vulnerability.
Is CVE-2024-31144 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-31144 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-31144?
CVE-2024-31144 affects Xen Project Xen.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.