Stack-based buffer overflow in LibTIFF - CVE-2013-1961

 

Stack-based buffer overflow in LibTIFF - CVE-2013-1961

Published: July 3, 2013 / Updated: July 28, 2020


Vulnerability identifier: #VU32636
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-1961
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the t2p_write_pdf_page function in tiff2pdf when processing a crafted image length and resolution in a TIFF image file. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

LibTIFF
Gentoo Linux
Ubuntu
Slackware Linux
tiff (Alpine package)
libtiff4 (Ubuntu package)
libtiff5 (Ubuntu package)

How to mitigate CVE-2013-1961

Update to version 4.0.3.

LibTIFF - update to 4.0.3
tiff (Alpine package) - update to 4.0.3-r1
libtiff4 (Ubuntu package) - addressed in versions 3.9.2-2ubuntu0.13, 3.9.5-2ubuntu1.5
libtiff5 (Ubuntu package) - addressed in versions 4.0.2-1ubuntu2.2, 4.0.2-4ubuntu2.1

External References

Related Security Bulletins