Skip to main content
VulnerabilityPublished Updated

CVE-2024-2494: libvirt · Excessive Memory Allocation

Affects libvirtSource CVE Database V5

0

Not known to be exploited · CVSS 6.2 Medium.

Data as of 26 Oct 2026, 09:08 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Mar 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Debiandebian/libvirtpkg:deb/debian/libvirtOther threatsAffected
  • =9.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-2494, organizations should apply patches or updates from libvirt maintainers as soon as they become available, specifically targeting version 9.0.0. In the absence of an official patch, administrators should restrict local user access to systems running libvirt daemons to trusted personnel only, minimizing the risk of exploitation. Implementing strict access controls and monitoring for unusual libvirt daemon crashes can help detect attempted exploitation. Additionally, consider running libvirt services with reduced privileges and employing containerization or sandboxing techniques to limit the impact of a crash. Reviewing and hardening RPC API usage and input validation in custom integrations with libvirt can further reduce risk. Regularly auditing and updating virtualization infrastructure components is critical to maintaining security posture.

Description

A flaw was found in the RPC library APIs of libvirt. The RPC server deserialization code allocates memory for arrays before the non-negative length check is performed by the C API entry points. Passing a negative length to the g_new0 function results in a crash due to the negative length being treated as a huge positive number. This flaw allows a local, unprivileged user to perform a denial of service attack by causing the libvirt daemon to crash.

References

Community reviews

Loading reviews…