vendor:
libtermcap
by:
m0f0
7.2
CVSS
HIGH
Buffer Overflow
120
CWE
Product Name: libtermcap
Affected Version From: 2.0.8
Affected Version To: earlier
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: Slackware 3.5, 3.6
1999
libtermcap xterm exploit
A buffer overflow existed in libtermcap's tgetent() function, which could cause the user to execute arbitrary code if they were able to supply their own termcap file. Versions of libtermcap 2.0.8 and earliear are vulnerable. Under Red Hat Linux 5.2 and 4.2, this could lead to local users gaining root privileges, as xterm (as well as other possibly setuid programs) are linked against libtermcap. Under Red Hat Linux 6.0, xterm is not setuid root. Debian and Caldera OpenLinux use the ncurses library instead of termcap and thus are not vulnerable.
Mitigation:
Upgrade to the latest version of libtermcap and use the ncurses library instead of termcap.