CVE Vulnerabilities

CVE-2009-1962

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

Published: Jun 08, 2009 | Modified: Aug 17, 2017
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
LOW

Xfig, possibly 3.2.5, allows local users to read and write arbitrary files via a symlink attack on the (1) xfig-eps[PID], (2) xfig-pic[PID].pix, (3) xfig-pic[PID].err, (4) xfig-pcx[PID].pix, (5) xfig-xfigrc[PID], (6) xfig[PID], (7) xfig-print[PID], (8) xfig-export[PID].err, (9) xfig-batch[PID], (10) xfig-exp[PID], or (11) xfig-spell.[PID] temporary files, where [PID] is a process ID.

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
Xfig Xfig 3.2.5 (including) 3.2.5 (including)
Debian_linux Debian 4.0 (including) 4.0 (including)
Debian_linux Debian 5.0 (including) 5.0 (including)
Xfig Ubuntu artful *
Xfig Ubuntu cosmic *
Xfig Ubuntu dapper *
Xfig Ubuntu disco *
Xfig Ubuntu eoan *
Xfig Ubuntu groovy *
Xfig Ubuntu hardy *
Xfig Ubuntu intrepid *
Xfig Ubuntu jaunty *
Xfig Ubuntu karmic *
Xfig Ubuntu lucid *
Xfig Ubuntu maverick *
Xfig Ubuntu natty *
Xfig Ubuntu oneiric *
Xfig Ubuntu precise *
Xfig Ubuntu quantal *
Xfig Ubuntu raring *
Xfig Ubuntu saucy *
Xfig Ubuntu trusty *
Xfig Ubuntu upstream *
Xfig Ubuntu utopic *
Xfig Ubuntu vivid *
Xfig Ubuntu wily *
Xfig Ubuntu xenial *
Xfig Ubuntu yakkety *
Xfig Ubuntu zesty *

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