Heap Memory Read Vulnerability in ClamAV - CVE-2018-1000085

clamav Updated 02 Oct 2025

Summary

13/03/2018
N/A
Yes i
Medium
5.5

ALPINE-CVE-2018-1000085: ClamAV version version 0.99.3 contains a Out of bounds heap memory read vulnerability in XAR parser, function xar_hash_check() that can result in Leaking of memory, may help in developing exploit chains.. Affects clamav versions < 0.99.4-r0. Fixed in 0.99.4-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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ClamAV is an open-source antivirus engine designed for detecting malware and other malicious threats. It is widely used in various applications and systems to provide security against viruses, trojans, and other types of malware. The package is known for its versatility and ability to scan files in real-time, making it a popular choice for both personal and enterprise-level security solutions. However, ClamAV version 0.99.3 is vulnerable to a specific issue that can lead to memory leaks and potential exploitation.

Vulnerability Detail

The vulnerability identified as CVE-2018-1000085 is an out-of-bounds heap memory read in the XAR parser, specifically in the function xar_hash_check(). This flaw can lead to the leaking of sensitive memory information, which may assist attackers in developing exploit chains. The vulnerability is triggered when a victim scans a specially crafted XAR file, making it a significant risk for users of the affected ClamAV versions.

How To Fix

Minimum fixed version

0.99.4-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 measure, users can avoid scanning XAR files until the package is updated to the patched version. Additionally, implementing file type restrictions in the scanning configuration may help mitigate the risk.

Conclusion

CVE-2018-1000085 represents a significant vulnerability in ClamAV that can lead to memory leaks and potential exploitation through crafted XAR files. Users are strongly advised to update to the patched version 0.99.4-r0 to mitigate this risk. For those unable to update immediately, temporary workarounds are available to reduce exposure.

See every vulnerability recorded for clamav →

Share this vulnerability

FAQ

CVE-2018-1000085 is a vulnerability in ClamAV that allows for an out-of-bounds heap memory read, potentially leading to memory leaks.

ClamAV versions prior to 0.99.4-r0 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2018-1000085 is 5.5, indicating a moderate level of severity.

If immediate updates are not possible, refrain from scanning XAR files and consider implementing file type restrictions as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for clamav.

How To Fix

Minimum fixed version

0.99.4-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