vendor:
ClamAV
by:
Unknown
7.5
CVSS
HIGH
Stack Overflow
119
CWE
Product Name: ClamAV
Affected Version From: 0.93.3
Affected Version To: 0.94
Patch Exists: Yes
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: OpenSolaris
2009
Recursive Stack Overflow in ClamAV 0.93.3 and 0.94
There is a recursive stack overflow in clamav 0.93.3 and 0.94 (and probably older versions) in the jpeg parsing code. It scan's the jpeg file, and if there is a thumbnail, it'll scan that too. The thumbnail itself is just another jpeg file and the same jpeg scanning function gets called without checking any kind of recurising limit. This can easely lead to a recurisive stack overflow. The exploit shown below triggers this recursive stack overflow by creating a fake jpg file. Once created and passed on to clamav it'll go in a recursive stack loop untill clamav runs out of stack memory and causes a stack overflow. Effectively crashing clamav.
Mitigation:
Upgrade to the latest version of ClamAV.