Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-20792

A vulnerability in the regex module used by the signature database load module of Clam AntiVirus (ClamAV) versions 0.104.0 through 0.104.2 and LTS version 0.103.5 and prior versions could allow an authenticated, local attacker to crash ClamAV at database load time, and possibly gain code execution. The vulnerability is due to improper bounds checking that may result in a multi-byte heap buffer overwflow write. An attacker could exploit this vulnerability by placing a crafted CDB ClamAV signature database file in the ClamAV database directory. An exploit could allow the attacker to run code as the clamav user.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-20792
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:23 UTC · Revision 1

Source evidence

CVE-2022-20792

core-osv · Original source

Published 10 Aug 2022, 09:15 UTC

A vulnerability in the regex module used by the signature database load module of Clam AntiVirus (ClamAV) versions 0.104.0 through 0.104.2 and LTS version 0.103.5 and prior versions could allow an authenticated, local attacker to crash ClamAV at database load time, and possibly gain code execution. The vulnerability is due to improper bounds checking that may result in a multi-byte heap buffer overwflow write. An attacker could exploit this vulnerability by placing a crafted CDB ClamAV signature database file in the ClamAV database directory. An exploit could allow the attacker to run code as the clamav user.

osv:CVE-2022-20792
Complete source record
{
  "id": "0d7c79a756950f2bc0a5dff4488d89697aa8b05b9854c9c78cf7f657fc8a3bfd",
  "url": "https://osv.dev/vulnerability/CVE-2022-20792",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-20792",
    "summary": "A vulnerability in the regex module used by the signature database load module of Clam AntiVirus (ClamAV) versions 0.104.0 through 0.104.2 and LTS version 0.103.5 and prior versions could allow an authenticated, local attacker to crash ClamAV at database load time, and possibly gain code execution. The vulnerability is due to improper bounds checking that may result in a multi-byte heap buffer overwflow write. An attacker could exploit this vulnerability by placing a crafted CDB ClamAV signature database file in the ClamAV database directory. An exploit could allow the attacker to run code as the clamav user.",
    "evidence": "osv:CVE-2022-20792",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-20792",
      "aliases": [
        "CVE-2022-20792"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cisco-talos/clamav",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "5faab1937cc2b89049ef7748dc9a10545707613d"
                },
                {
                  "introduced": "ba51bf8e644921a1592d2f3d280a2daa924acfd8"
                },
                {
                  "last_affected": "fb828e93cab6b73818c1d94ffd05d92720a85c6f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.103.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.104.0"
                      },
                      {
                        "last_affected": "0.104.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "clamav-0.104.2",
            "clamav-0.103.5",
            "clamav-0.103.4",
            "clamav-0.104.1",
            "clamav-0.103.3",
            "clamav-0.104.0",
            "clamav-0.103.2",
            "clamav-0.103.1",
            "clamav-0.103.0",
            "clamav-0.103.0-rc2",
            "clamav-0.103.0-rc",
            "clamav-0.102.0",
            "clamav-0.101.0",
            "clamav-0.97",
            "clamav-0.97rc",
            "clamav-0.96.5",
            "clamav-0.96.4",
            "clamav-0.96.3",
            "clamav-0.96.2",
            "clamav-0.96",
            "clamav-0.96rc2",
            "clamav-0.96rc1",
            "merge-llvm-97877",
            "r5076"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-20792.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:18.248066101Z",
      "provider": "osv",
      "references": [
        "https://blog.clamav.net/2022/05/clamav-01050-01043-01036-released.html",
        "https://security.gentoo.org/glsa/202310-01"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2022-20792",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429730,
  "published_at": "2022-08-10T09:15:08.197+00:00"
}