The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-20792

CVE-2022-20792: ClamAV Buffer Overflow Vulnerability

CVE-2022-20792 is a buffer overflow vulnerability in ClamAV's regex module that allows local attackers to crash the service or execute code. This article covers technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-20792 Overview

A heap buffer overflow vulnerability exists in the regex module used by the signature database load module of ClamAV. This vulnerability affects ClamAV versions 0.104.0 through 0.104.2 and LTS version 0.103.5 and prior versions. The flaw allows an authenticated, local attacker to crash ClamAV at database load time and potentially achieve arbitrary code execution as the clamav user.

Critical Impact

Successful exploitation could allow an attacker to execute arbitrary code with the privileges of the ClamAV service user, potentially compromising system security and antivirus protection capabilities.

Affected Products

  • ClamAV versions 0.104.0 through 0.104.2
  • ClamAV LTS version 0.103.5 and prior
  • Systems with writable ClamAV database directories accessible to attackers

Discovery Timeline

  • 2022-08-10 - CVE-2022-20792 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-20792

Vulnerability Analysis

This vulnerability stems from improper bounds checking within the regex module that handles ClamAV signature database parsing. When the signature database load module processes a specially crafted CDB (ClamAV Database) file, it fails to properly validate input boundaries before writing data to a heap-allocated buffer.

The vulnerability is classified under CWE-787 (Out-of-bounds Write) and CWE-125 (Out-of-bounds Read), indicating that both read and write operations can occur outside the intended memory boundaries. The local attack vector requires user interaction, typically through placing a malicious database file in the ClamAV database directory where it will be loaded during a signature update or service restart.

Root Cause

The root cause of this vulnerability lies in improper bounds checking within the regex module's buffer handling code. When processing signature patterns from CDB files, the module performs multi-byte write operations without adequately verifying that the destination buffer has sufficient space to accommodate the data. This oversight allows an attacker to trigger a multi-byte heap buffer overflow write condition.

Attack Vector

An attacker with local access to the system can exploit this vulnerability by placing a maliciously crafted CDB ClamAV signature database file in the ClamAV database directory. The attack sequence involves:

  1. Crafting a malicious CDB file with specially constructed regex patterns designed to trigger the buffer overflow
  2. Placing the crafted file in the ClamAV database directory (typically /var/lib/clamav/ on Linux systems)
  3. Waiting for or triggering a database reload operation (either through service restart, scheduled update, or manual refresh)
  4. Upon database load, the vulnerable regex parsing code processes the malicious patterns, causing a heap buffer overflow
  5. The overflow can corrupt adjacent heap memory, potentially allowing the attacker to gain code execution as the clamav user

The attack requires either authenticated local access or another vulnerability that allows file write access to the ClamAV database directory. Successful exploitation results in either denial of service (crash) or arbitrary code execution with the privileges of the ClamAV service account.

Detection Methods for CVE-2022-20792

Indicators of Compromise

  • Unexpected ClamAV service crashes during database load operations
  • Suspicious or unrecognized .cdb files in the ClamAV database directory
  • Anomalous memory consumption patterns in the clamd or clamscan processes
  • Core dumps or crash reports from ClamAV components indicating heap corruption

Detection Strategies

  • Monitor file system activity in ClamAV database directories (/var/lib/clamav/, /var/clamav/, or custom paths) for unauthorized file creation
  • Implement file integrity monitoring on ClamAV database directories to detect unauthorized modifications
  • Review ClamAV logs for repeated database load failures or crash events
  • Deploy endpoint detection rules to identify processes writing to ClamAV database directories outside of normal update operations

Monitoring Recommendations

  • Enable enhanced logging for ClamAV database update operations
  • Configure alerts for ClamAV service crashes or unexpected restarts
  • Implement directory access auditing on ClamAV database paths
  • Monitor for privilege escalation attempts from the clamav user account

How to Mitigate CVE-2022-20792

Immediate Actions Required

  • Update ClamAV to version 0.105.0 or later immediately
  • For LTS deployments, update to version 0.103.6 or later
  • Restrict write access to ClamAV database directories to only authorized update processes
  • Review recent file changes in ClamAV database directories for suspicious activity

Patch Information

ClamAV has released patched versions that address this vulnerability. According to the ClamAV Release Announcement, the following versions contain the security fix:

  • ClamAV 0.105.0 and later (current stable branch)
  • ClamAV 0.104.3 and later (0.104.x branch)
  • ClamAV 0.103.6 and later (LTS branch)

Linux distributions have also released updates. For Gentoo users, refer to the Gentoo GLSA 202310-01 Advisory for distribution-specific guidance.

Workarounds

  • Restrict file system permissions on ClamAV database directories to prevent unauthorized write access
  • Configure SELinux or AppArmor policies to limit which processes can write to database directories
  • Implement network segmentation to limit local access to systems running ClamAV
  • Monitor and audit all file operations in ClamAV database directories until patching is complete
bash
# Configuration example
# Restrict permissions on ClamAV database directory
chmod 755 /var/lib/clamav
chown clamav:clamav /var/lib/clamav

# Ensure only root and clamav user can modify database files
find /var/lib/clamav -type f -exec chmod 644 {} \;
find /var/lib/clamav -type f -exec chown clamav:clamav {} \;

# Verify ClamAV version after update
clamscan --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechClamav

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-125

  • CWE-787
  • Technical References
  • Gentoo GLSA 202310-01 Advisory
  • Vendor Resources
  • ClamAV Release Announcement
  • Related CVEs
  • CVE-2025-20260: ClamAV Buffer Overflow Vulnerability

  • CVE-2026-20031: ClamAV HTML CSS Module DoS Vulnerability

  • CVE-2020-37167: ClamAV Bytecode Interpreter RCE Vulnerability

  • CVE-2024-20505: ClamAV PDF Parsing DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English