Cscope: User-assisted execution of arbitrary code

Security Team  Contact Address

Updated May 24, 2009

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200905-02 / cscope
Release Date May 24, 2009
Latest Revision May 24, 2009: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-util/cscope < 15.7a >= 15.7a All supported architectures

Related bugreports: #263023

Synopsis

Multiple vulnerabilities in Cscope might allow for the remote execution of arbitrary code.

2.  Impact Information

Background

Cscope is a developer's tool for browsing source code.

Description

James Peach of Apple discovered a stack-based buffer overflow in cscope's handling of long file system paths (CVE-2009-0148). Multiple stack-based buffer overflows were reported in the putstring function when processing an overly long function name or symbol in a source code file (CVE-2009-1577).

Impact

A remote attacker could entice a user to open a specially crafted source file, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the application.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Cscope users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/cscope-15.7a"

4.  References