Description
The "%f" feature in the VirusEvent directive in Clam AntiVirus daemon (clamd) before 0.70 allows local users to execute arbitrary commands via shell metacharacters in a file name.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | clamav | 0.70-1 | — |
| Debian 13 | clamav | 0.70-1 | — |
| Debian 12 | clamav | 0.70-1 | — |
References
- 11253 third-party-advisory
- GLSA-200405-03 vendor-advisory
- clamantivirus-virusevent-gain-privileges(15692) vdb-entry
- 20040330 clamd - NEVER use "%f" in your "VirusEvent" mailing-list
- 10007 vdb-entry