vendor:
libtermcap
by:
sk8 of LS
7.2
CVSS
HIGH
Buffer Overflow
120
CWE
Product Name: libtermcap
Affected Version From: libtermcap 2.0.8 and earlier
Affected Version To: libtermcap 2.0.8-15
Patch Exists: YES
Related CWE: N/A
CPE: libtermcap
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: RedHat 5.2 and 4.2
1999
Buffer Overflow in libtermcap’s tgetent() Function
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:
Quick fix, chmod u-s ALL suid root programs linked with libtermcap.