Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2024-20506

A vulnerability in the ClamD service module of Clam AntiVirus (ClamAV) versions 1.4.0, 1.3.2 and prior versions, all 1.2.x versions, 1.0.6 and prior versions, all 0.105.x versions, all 0.104.x versions, and 0.103.11 and all prior versions could allow an authenticated, local attacker to corrupt critical system files. The vulnerability is due to allowing the ClamD process to write to its log file while privileged without checking if the logfile has been replaced with a symbolic link. An attacker could exploit this vulnerability if they replace the ClamD log file with a symlink to a critical system file and then find a way to restart the ClamD process. An exploit could allow the attacker to corrupt a critical system file by appending ClamD log messages after restart.

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

Source evidence

CVE-2024-20506

core-osv · Original source

Published 4 Sept 2024, 22:15 UTC

A vulnerability in the ClamD service module of Clam AntiVirus (ClamAV) versions 1.4.0, 1.3.2 and prior versions, all 1.2.x versions, 1.0.6 and prior versions, all 0.105.x versions, all 0.104.x versions, and 0.103.11 and all prior versions could allow an authenticated, local attacker to corrupt critical system files. The vulnerability is due to allowing the ClamD process to write to its log file while privileged without checking if the logfile has been replaced with a symbolic link. An attacker could exploit this vulnerability if they replace the ClamD log file with a symlink to a critical system file and then find a way to restart the ClamD process. An exploit could allow the attacker to corrupt a critical system file by appending ClamD log messages after restart.

osv:CVE-2024-20506
Complete source record
{
  "id": "8a2314e121bc5b31e86a809f774a787a98ede9a83d4da1018f22a8b50250d307",
  "url": "https://osv.dev/vulnerability/CVE-2024-20506",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2024-20506",
    "summary": "A vulnerability in the ClamD service module of Clam AntiVirus (ClamAV) versions 1.4.0, 1.3.2 and prior versions, all 1.2.x versions, 1.0.6 and prior versions, all 0.105.x versions, all 0.104.x versions, and 0.103.11 and all prior versions could allow an authenticated, local attacker to corrupt critical system files. The vulnerability is due to allowing the ClamD process to write to its log file while privileged without checking if the logfile has been replaced with a symbolic link. An attacker could exploit this vulnerability if they replace the ClamD log file with a symlink to a critical system file and then find a way to restart the ClamD process. An exploit could allow the attacker to corrupt a critical system file by appending ClamD log messages after restart.",
    "evidence": "osv:CVE-2024-20506",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-20506",
      "aliases": [
        "CVE-2024-20506"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cisco-talos/clamav",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "93d9e734200ad2eec6d1af6d52e0a4b7a7ae5d26"
                },
                {
                  "introduced": "ba51bf8e644921a1592d2f3d280a2daa924acfd8"
                },
                {
                  "fixed": "a54a13dac20639775fba48869864589dc26ab66e"
                },
                {
                  "introduced": "7d26bc8f6a801bb35ff7f2b154f33817e5863ea6"
                },
                {
                  "fixed": "4abd96a831bf916f8ccb10c85ce92f90c8bb81ec"
                },
                {
                  "introduced": "cad552d115e764c11c492f77b8a9f76819443108"
                },
                {
                  "last_affected": "cad552d115e764c11c492f77b8a9f76819443108"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.103.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.104.0"
                      },
                      {
                        "fixed": "1.0.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.2.0"
                      },
                      {
                        "fixed": "1.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:clamav:clamav:1.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.4.0"
                      },
                      {
                        "last_affected": "1.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.4.0",
            "clamav-1.4.0",
            "clamav-0.103.11",
            "clamav-1.0.6",
            "clamav-1.3.1",
            "clamav-1.3.0",
            "clamav-1.0.5",
            "clamav-1.3.0-rc2",
            "clamav-1.3.0-rc",
            "clamav-1.0.4",
            "clamav-1.2.0",
            "clamav-1.0.3",
            "clamav-0.103.10",
            "clamav-1.0.2",
            "clamav-0.103.9",
            "clamav-1.0.1",
            "clamav-0.103.8",
            "clamav-1.0.0",
            "clamav-0.103.7",
            "clamav-1.0.0-rc2",
            "clamav-1.0.0-rc",
            "clamav-0.105.0",
            "clamav-0.103.6",
            "clamav-0.105.0-rc2",
            "clamav-0.105.0-rc",
            "clamav-0.103.5",
            "clamav-0.103.4",
            "clamav-0.103.3",
            "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-2024-20506.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:48.204205272Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2024/12/msg00004.html",
        "https://blog.clamav.net/2024/09/clamav-141-132-107-and-010312-security.html"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2024-20506",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436710,
  "published_at": "2024-09-04T22:15:04.083+00:00"
}