CVE-2018-5748: qemu/qemu_monitor.c in libvirt allows attackers to cause a denial of service (memory consumption) via a large QEMU reply.
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.1% (FIRST EPSS); higher than 88.2% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: libvirt (Debian:12) 4.0.0-1; libvirt (Debian:7) 0.9.12.3-1+deb7u3; libvirt (openSUSE:Tumbleweed) 7.7.0-2.1.
Low priority for now. Upgrade to libvirt (Debian:12) 4.0.0-1; libvirt (Debian:7) 0.9.12.3-1+deb7u3; libvirt (openSUSE:Tumbleweed) 7.7.0-2.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
- Published
- Jan 25, 2018
- Updated
- Jun 16, 2026
- EPSS
- 3.1% · 88th percentile
- CWE
- CWE-400
Report tools
Action score
31
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.1%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| redhat | libvirt | cpe:2.3:a:redhat:libvirt |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux server aus | cpe:2.3:o:redhat:enterprise_linux_server_aus |
| redhat | enterprise linux server eus | cpe:2.3:o:redhat:enterprise_linux_server_eus |
| redhat | enterprise linux server tus | cpe:2.3:o:redhat:enterprise_linux_server_tus |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux7.0
- debian debian linux8.0
- debian debian linux9.0
- redhat enterprise linux desktop6.0
- redhat enterprise linux desktop7.0
- redhat enterprise linux server6.0
- redhat enterprise linux server7.0
- redhat enterprise linux server aus7.6
+6 more rows
- redhat enterprise linux server eus7.5
- redhat enterprise linux server eus7.6
- redhat enterprise linux server tus7.6
- redhat enterprise linux workstation6.0
- redhat enterprise linux workstation7.0
- redhat libvirtall versions
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libvirt | before 4.0.0-1 | 4.0.0-1 |
| Debian:7 | libvirt | before 0.9.12.3-1+deb7u3 | 0.9.12.3-1+deb7u3 |
| openSUSE:Tumbleweed | libvirt | before 7.7.0-2.1 | 7.7.0-2.1 |
| Red Hat:enterprise_linux:6::client | libvirt | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:6::client | libvirt-client | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:6::client | libvirt-debuginfo | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:6::client | libvirt-devel | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:6::client | libvirt-lock-sanlock | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:6::client | libvirt-python | before 0:0.10.2-64.el6 | 0:0.10.2-64.el6 |
| Red Hat:enterprise_linux:7::client | libvirt | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-admin | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-client | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-config-network | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-config-nwfilter | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-interface | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-lxc | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-network | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-nodedev | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-nwfilter | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-qemu | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-secret | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-storage | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
| Red Hat:enterprise_linux:7::client | libvirt-daemon-driver-storage-core | before 0:3.9.0-14.el7_5.4 | 0:3.9.0-14.el7_5.4 |
+22
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5008libvirt before 2.0.0 improperly disables password checking when the password on a VNC server is set to an empty string, which allows remote…40Plan
- CVE-2020-14339A flaw was found in libvirt, where it leaked a file descriptor for `/dev/mapper/control` into the QEMU process.35Monitor
- CVE-2019-10132A vulnerability was found in libvirt >= 4.1.0 in the virtlockd-admin.socket and virtlogd-admin.socket systemd units.35Monitor
Published before and after this one in the same product
- ← EarlierCVE-2015-5247Apr 14, 2016 · The virStorageVolCreateXML API in libvirt 1.2.14 through 1.2.19 allows remote authenticated users with a read-write connection to cause a…26Monitor
- ← EarlierCVE-2017-1000256Oct 31, 2017 · libvirt version 2.3.0 and later is vulnerable to a bad default configuration of "verify-peer=no" passed to QEMU by libvirt resulting in a…33Monitor
- Later →CVE-2018-6764Feb 23, 2018 · util/virlog.c in libvirt does not properly determine the hostname on LXC container startup, which allows local guest OS users to bypass an…31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libvirt | 4.0.0-1 · Debian:12 | Package registry (OSV) |
| opensuse:libvirt | 7.7.0-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:libvirt | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-client | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-config-network | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-config-nwfilter | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-interface | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-lxc | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-network | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-nodedev | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-nwfilter | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-qemu | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libvirt-daemon-driver-secret | 0:3.9.0-14.el7_5.4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:libvirt | 3.3.0-5.13.1 · SUSE:Linux Enterprise Desktop 12 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (5 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.