ClamAV Integer Overflow Vulnerability - CVE-2018-0360

clamav Updated 02 Oct 2025

Summary

16/07/2018
N/A
Yes i
Medium
5.5

ALPINE-CVE-2018-0360: ClamAV before 0.100.1 has an HWP integer overflow with a resultant infinite loop via a crafted Hangul Word Processor file. Affects clamav versions < 0.100.1-r0. Fixed in 0.100.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

ClamAV is an open-source antivirus engine designed for detecting malware and other malicious threats. It is widely used in various applications, including email servers and web gateways, to provide real-time protection against viruses and other threats. The software is known for its flexibility, supporting various file formats and offering a range of scanning options. However, it is vulnerable to a specific issue that can lead to severe consequences if exploited.

Vulnerability Detail

The vulnerability identified as CVE-2018-0360 is an integer overflow in ClamAV that occurs when processing crafted Hangul Word Processor (HWP) files. This flaw resides in the parsehwp3_paragraph() function within the libclamav/hwp.c file. When an attacker sends a specially crafted HWP file, it can trigger an infinite loop, causing the application to become unresponsive. This could lead to denial of service, impacting the availability of the service that relies on ClamAV for malware detection.

How To Fix

Minimum fixed version

0.100.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade clamav

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict the processing of HWP files until the ClamAV package is updated. This can be done by configuring your scanning settings to exclude HWP files from being scanned, thereby mitigating the risk of exploitation.

Conclusion

The ClamAV integer overflow vulnerability (CVE-2018-0360) poses a significant risk to users by potentially leading to denial of service through crafted HWP files. It is crucial to update to the patched version 0.100.1-r0 to ensure the security and availability of your systems. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for clamav →

Share this vulnerability

FAQ

CVE-2018-0360 is a vulnerability in ClamAV that allows an attacker to exploit an integer overflow in the processing of HWP files, potentially leading to a denial of service.

You can check if your installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

Exploitation of this vulnerability can lead to an infinite loop in ClamAV, causing the application to hang and resulting in a denial of service for users relying on its scanning capabilities.

Yes, a patch is available in version 0.100.1-r0 of ClamAV. It is recommended to update to this version or later to mitigate the vulnerability.

If you cannot update immediately, consider excluding HWP files from scanning as a temporary workaround to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for clamav.

How To Fix

Minimum fixed version

0.100.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade clamav

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback