CVE-2023-20197
High · 7.5CVSS
7.5
EPSS
1.2%
Published
Aug 16, 2023
CISA due date
—
Cloudanix analysis
A specially made file can make the scanning software freeze and use up all system resources until someone restarts it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect completion check during HFS+ filesystem image decompression creates an infinite loop that halts the scanning process and exhausts system resources.
Why it matters to the business
Scanning services become unresponsive, blocking file inspection workflows, consuming CPU and memory, and potentially disrupting printing or content-processing pipelines until the process is restarted.
How an attack unfolds
An attacker crafts a malicious HFS+ filesystem image and submits it for scanning; the parser enters a loop on decompression and never completes, causing denial of service.
How to fix it
Upgrade openprinting/cups-filters to the commit 9d4b76bc778a77c3d984b002cb956b18deec2b63 or later; rebuild and redeploy packages that embed the vulnerable parser; restart affected services after upgrade.
How to confirm the fix worked
Confirm the installed cups-filters source contains commit 9d4b76bc778a77c3d984b002cb956b18deec2b63; run regression tests with known-good and known-bad HFS+ images to verify the loop condition no longer occurs.
Typical attack path
- Identify a reachable service that invokes the HFS+ parser on untrusted input
- Prepare a specially crafted HFS+ filesystem image that triggers the incomplete decompression check
- Submit the image to the scanner (e.g., via print job, file upload, or mail attachment)
- Observe the scanning process enter an infinite loop and cease responding
How to detect it
Monitor scanner process CPU and memory usage for sustained 100 % utilization without completion; review logs for repeated HFS+ image processing entries that never finish; correlate with submission of filesystem images.
What your security team should do
- Apply the fixed commit immediately on all internet-facing or multi-tenant instances
- Add resource limits and process restarts for the scanner to limit blast radius until patched
- Inventory all downstream packages that depend on the vulnerable cups-filters code
The record
A vulnerability in the filesystem image parser for Hierarchical File System Plus (HFS+) of ClamAV could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition on an affected device. This vulnerability is due to an incorrect check for completion when a file is decompressed, which may result in a loop condition that could cause the affected software to stop responding. An attacker could exploit this vulnerability by submitting a crafted HFS+ filesystem image to be scanned by ClamAV on an affected device. A successful exploit could allow the attacker to cause the ClamAV scanning process to stop responding, resulting in a DoS condition on the affected software and consuming available system resources. For a description of this vulnerability, see the ClamAV blog .
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | clamav | 0 | 0.103.9+dfsg-0+deb10u1 |
| Debian:11 | clamav | 0 | 0.103.9+dfsg-0+deb11u1 |
| Debian:12 | clamav | 0 | 1.0.2+dfsg-1~deb12u1 |
| Debian:13 | clamav | 0 | 1.0.2+dfsg-1 |
| Mageia:8 | clamav | 0 | 0.103.10-1.mga8 |
| Mageia:9 | clamav | 0 | 1.0.3-1.mga9 |
| SUSE:Enterprise Storage 7 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Enterprise Storage 7.1 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Enterprise Storage 7.1 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Micro 5.5 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | clamav | 0 | 1.4.2-150600.18.6.1 |
| SUSE:Linux Enterprise Server 12 SP5 | clamav | 0 | 0.103.9-3.27.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | clamav | 0 | 1.4.2-3.36.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | clamav | 0 | 1.4.2-3.36.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | clamav | 0 | 0.103.9-3.27.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Manager Proxy 4.2 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Manager Proxy 4.3 | clamav | 0 | 1.4.2-150200.8.3.1 |
| SUSE:Manager Server 4.2 | clamav | 0 | 0.103.9-150000.3.47.1 |
| SUSE:Manager Server 4.3 | clamav | 0 | 1.4.2-150200.8.3.1 |
| Ubuntu:20.04:LTS | clamav | 0 | 0.103.9+dfsg-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | clamav | 0 | 0.103.9+dfsg-0ubuntu0.22.04.1 |
| Ubuntu:Pro:14.04:LTS | clamav | 0 | 0.103.9+dfsg-0ubuntu0.14.04.1+esm1 |
| Ubuntu:Pro:16.04:LTS | clamav | 0 | 0.103.9+dfsg-0ubuntu0.16.04.1+esm1 |
| Ubuntu:Pro:18.04:LTS | clamav | 0 | 0.103.9+dfsg-0ubuntu0.18.04.1+esm1 |
| openSUSE:Leap 15.4 | clamav | 0 | 0.103.9-150000.3.47.1 |
| openSUSE:Leap 15.5 | clamav | 0 | 0.103.9-150000.3.47.1 |
| openSUSE:Leap 15.6 | clamav | 0 | 1.4.2-150600.18.6.1 |
| openSUSE:Tumbleweed | clamav | 0 | 0.103.9-1.1 |
Related vulnerabilities
- CVE-2023-20052 On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was… Also affects clamav
- CVE-2023-20032 On Feb 15, 2023, the following vulnerability in the ClamAV scanning library was… Also affects clamav
- CVE-2017-11423 The cabd_read_string function in mspack/cabd.c in libmspack 0.5alpha, as used in ClamAV… Also affects clamav
- CVE-2015-2305 Integer overflow in the regcomp implementation in the Henry Spencer BSD regex library… Also affects clamav
- CVE-2012-1457 The TAR file parser in Avira AntiVir 7.11.1.163, Antiy Labs AVL SDK 2.0.3.7, avast! Also affects clamav
- CVE-2012-1459 The TAR file parser in AhnLab V3 Internet Security 2011.01.18.00, Avira AntiVir… Also affects clamav
- CVE-2012-1458 The Microsoft CHM file parser in ClamAV 0.96.4 and Sophos Anti-Virus 4.61.0 allows remote… Also affects clamav
- CVE-2012-1419 The TAR file parser in ClamAV 0.96.4 and Quick Heal (aka Cat QuickHeal) 11.00 allows… Also affects clamav