cve.bz

CVE-2023-20052 Billion Laughs Attack

5.3 mediumEPSS 7.0%

Medium (5.3). EPSS 7.0% estimated probability of exploitation activity in the next 30 days.

On this page
On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was disclosed: A vulnerability in the DMG file parser of ClamAV versions 1.0.0 and earlier, 0.105.1 and earlier, and 0.103.7 and earlier could allow an unauthenticated, remote attacker to access sensitive information on an affected device. This vulnerability is due to enabling XML entity substitution that may result in XML external entity injection. An attacker could exploit this vulnerability by submitting a crafted DMG file to be scanned by ClamAV on an affected device. A successful exploit could allow the attacker to leak bytes from any file that may be read by the ClamAV scanning process.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
7.0% (unchanged from 7.0% a week ago; 7.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-776 Improper Restriction of Recursive Entity References in DTDs (Billion Laughs Attack)
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-20052 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-20052?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-20052?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-20052 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cisco:secure_endpointbefore 1.20.2
cisco:secure_endpointbefore 1.21.1
cisco:secure_endpointbefore 7.5.9
cisco:secure_endpointfrom 8.0.1.21160 before 8.1.5
cisco:secure_endpoint_private_cloudbefore 3.6.0
clamav:clamavthrough 0.103.7
clamav:clamavfrom 0.104.0 through 0.105.1
clamav:clamav1.0.0
clamav:clamav1.0.0:rc
clamav:clamav1.0.0:rc2
stormshield:stormshield_network_securityfrom 3.0.0 before 3.7.35
stormshield:stormshield_network_securityfrom 3.8.0 before 3.11.23
stormshield:stormshield_network_securityfrom 4.3.0 before 4.3.17
stormshield:stormshield_network_securityfrom 4.4.0 before 4.6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10clamav0.103.8+dfsg-0+deb10u1DLA-3328-1
Debian12, 13, 14clamav1.0.1+dfsg-1DEBIAN-CVE-2023-20052
Ubuntu18.04:LTSclamav0.103.8+dfsg-0ubuntu0.18.04.1UBUNTU-CVE-2023-20052 USN-5887-1
Ubuntu20.04:LTSclamav0.103.8+dfsg-0ubuntu0.20.04.1UBUNTU-CVE-2023-20052 USN-5887-1
Ubuntu22.04:LTSclamav0.103.8+dfsg-0ubuntu0.22.04.1UBUNTU-CVE-2023-20052 USN-5887-1
UbuntuPro:14.04:LTSclamav0.103.8+dfsg-0ubuntu0.14.04.1+esm1UBUNTU-CVE-2023-20052 USN-5887-1
UbuntuPro:16.04:LTSclamav0.103.8+dfsg-0ubuntu0.16.04.1+esm1UBUNTU-CVE-2023-20052 USN-5887-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 moreclamav0.103.8-150000.3.44.1SUSE-SU-2023:0470-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4 and 2 moreclamav0.103.8-33.53.1SUSE-SU-2023:0453-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5clamav0.103.8-3.24.1SUSE-SU-2023:0471-1
openSUSELeap 15.4clamav0.103.8-150000.3.44.1SUSE-SU-2023:0470-1
openSUSETumbleweedclamav0.103.8-1.1openSUSE-SU-2024:12696-1
Alpinev3.17clamav0.105.2-r0ALPINE-CVE-2023-20052
Alpinev3.18, v3.19, v3.20 and 4 moreclamav1.0.1-r0ALPINE-CVE-2023-20052
Azure Linux2clamav0.105.2-1AZL-13723

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • tralsesec/CVE-2023-20052 Harbor Check: matches CVE 0 stars, Shell, created
    Original standalone Proof-of-Concept exploit and execution harness for CVE-2023-20052 (ClamAV DMG XML Entity Expansion).
  • MOHITSINGHPAPOLA/CVE-2023-20052 Harbor Check: matches CVE 0 stars, Dockerfile, created
    Working Docker build for the ClamAV XXE exploit (CVE-2023-20052), patched to compile on OpenSSL 3.0

Attack patterns (CAPEC)

  • CAPEC-197 Exponential Data Expansion Likelihood: High · Severity: Medium
  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON