CVE Vulnerabilities

CVE-2008-5149

Improper Link Resolution Before File Access ('Link Following')

Published: Nov 18, 2008 | Modified: Feb 17, 2009
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.9 MEDIUM
AV:L/AC:M/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu
NEGLIGIBLE

fwd_check.sh in libncbi6 6.1.20080302 allows local users to overwrite arbitrary files via a symlink attack on a /tmp/##### temporary file.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Libncbi6 Aucko 6.1.20080302 (including) 6.1.20080302 (including)
Ncbi-tools6 Ubuntu dapper *
Ncbi-tools6 Ubuntu gutsy *
Ncbi-tools6 Ubuntu hardy *
Ncbi-tools6 Ubuntu intrepid *
Ncbi-tools6 Ubuntu jaunty *
Ncbi-tools6 Ubuntu karmic *
Ncbi-tools6 Ubuntu lucid *
Ncbi-tools6 Ubuntu maverick *
Ncbi-tools6 Ubuntu natty *
Ncbi-tools6 Ubuntu oneiric *
Ncbi-tools6 Ubuntu quantal *
Ncbi-tools6 Ubuntu raring *
Ncbi-tools6 Ubuntu saucy *
Ncbi-tools6 Ubuntu upstream *
Ncbi-tools6 Ubuntu utopic *
Ncbi-tools6 Ubuntu vivid *
Ncbi-tools6 Ubuntu wily *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References