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

- Severity: Low 3.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-02-14T20:16:39.941Z
- Modified: 2026-06-17T07:27:51.890Z
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: XEN

## 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.

(As written by CVE List.)

## Affected

- Xen Project Xen: consult Xen advisory XSA-459
- xen xapi: from 1.249.0 up to 1.249.37

## References

- <https://xenbits.xen.org/xsa/advisory-459.html> (patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/07/16/4> (mailing-list, third-party-advisory)
- <http://xenbits.xen.org/xsa/advisory-459.html> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2024-31144](https://www.cve.org/CVERecord?id=CVE-2024-31144), CVE Terms of Use, modified 2025-04-26
- NVD: [CVE-2024-31144](https://nvd.nist.gov/vuln/detail/CVE-2024-31144), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31144 · Whole record: https://cve.day/CVE-2024-31144.json · Rebuilt by cve.day 2026-11-25T22:58:51.734Z
