CVE-2024-4467 Qemu-kvm: 'qemu-img info' leads to host file read/write

High 7.8 Published Updated

A crafted image file in qemu-img info can cause host file read/write or denial of service via resource exhaustion.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-4467?

CVE-2024-4467 is a high-severity path traversal vulnerability in Red Hat Advanced Virtualization for RHEL 8.2.1, published on 2 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in the QEMU disk image utility (qemu-img) 'info' command. A specially crafted image file containing a `json:{}` value describing block devices in QMP could cause the qemu-img process on the host to consume large amounts of memory or CPU time, leading to denial of service or read/write to an existing external file.

Weakness: CWE-787

Which versions are affected by CVE-2024-4467?

Linux distribution packages (40)
SLOF AlmaLinux:8All versions20210217-2.module_el8.10.0+3768+dfd76e10
hivex AlmaLinux:8All versions1.3.18-23.module_el8.6.0+2880+7d9e3703
hivex AlmaLinux:8All versions1.3.18-23.module_el8.6.0+3161+a07c0ea5
hivex-devel AlmaLinux:8All versions1.3.18-23.module_el8.6.0+2880+7d9e3703
hivex-devel AlmaLinux:8All versions1.3.18-23.module_el8.6.0+3161+a07c0ea5
libguestfs AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-appliance AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-bash-completion AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-devel AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-gfs2 AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-gobject AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-gobject-devel AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-inspect-icons AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-java AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-java-devel AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-javadoc AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-man-pages-ja AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-man-pages-uk AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-rescue AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-rsync AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-tools AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-tools-c AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libguestfs-winsupport AlmaLinux:8All versions8.10-1.module_el8.10.0+3768+dfd76e10
libguestfs-xfs AlmaLinux:8All versions1:1.44.0-9.module_el8.7.0+3493+5ed0bd1c.alma
libiscsi AlmaLinux:8All versions1.18.0-8.module_el8.6.0+2880+7d9e3703
libiscsi AlmaLinux:8All versions1.18.0-8.module_el8.6.0+3161+a07c0ea5
libiscsi-devel AlmaLinux:8All versions1.18.0-8.module_el8.6.0+2880+7d9e3703
libiscsi-devel AlmaLinux:8All versions1.18.0-8.module_el8.6.0+3161+a07c0ea5
libiscsi-utils AlmaLinux:8All versions1.18.0-8.module_el8.6.0+2880+7d9e3703
libiscsi-utils AlmaLinux:8All versions1.18.0-8.module_el8.6.0+3161+a07c0ea5
libnbd AlmaLinux:8All versions1.6.0-5.module_el8.6.0+2880+7d9e3703
libnbd AlmaLinux:8All versions1.6.0-5.module_el8.6.0+3161+a07c0ea5
libnbd-bash-completion AlmaLinux:8All versions1.6.0-5.module_el8.6.0+2880+7d9e3703
libnbd-devel AlmaLinux:8All versions1.6.0-5.module_el8.6.0+2880+7d9e3703
libnbd-devel AlmaLinux:8All versions1.6.0-5.module_el8.6.0+3161+a07c0ea5
libtpms AlmaLinux:8All versions0.9.1-2.20211126git1ff6fe1f43.module_el8.9.0+3659+9c8643f3
libtpms-devel AlmaLinux:8All versions0.9.1-2.20211126git1ff6fe1f43.module_el8.9.0+3659+9c8643f3
libvirt AlmaLinux:8All versions8.0.0-23.2.module_el8.10.0+3867+f3f9981a
libvirt AlmaLinux:8All versions8.0.0-23.2.module_el8.10.0+3869+b8959270
libvirt-client AlmaLinux:8All versions8.0.0-23.2.module_el8.10.0+3867+f3f9981a

How do I fix CVE-2024-4467?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-4467 being exploited?

There is no known exploitation of CVE-2024-4467 in the wild and no public exploit code.

Sources

Also known as ALSA-2024:4278, ALSA-2024:4420, AZL-60091, AZL-60922, BELL-CVE-2024-4467, DEBIAN-CVE-2024-4467 and 15 more.

Is CVE-2024-4467 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free