CVE Vulnerabilities

CVE-2004-0967

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

Published: Feb 09, 2005 | Modified: Oct 11, 2017
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu

The (1) pj-gs.sh, (2) ps2epsi, (3) pv.sh, and (4) sysvlp.sh scripts in the ESP Ghostscript (espgs) package in Trustix Secure Linux 1.5 through 2.1, and other operating systems, allow local users to overwrite files via a symlink attack on temporary files.

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
Ghostscript Aladdin_enterprises 5.10.15 5.10.15
Ghostscript Aladdin_enterprises 6.53 6.53
Ghostscript Aladdin_enterprises 6.51 6.51
Ghostscript Aladdin_enterprises 5.50.8 5.50.8
Ghostscript Aladdin_enterprises 5.10.10 5.10.10
Ghostscript Aladdin_enterprises 5.50.8_7 5.50.8_7
Ghostscript Aladdin_enterprises 4.3 4.3
Ghostscript Aladdin_enterprises 5.50 5.50
Ghostscript Aladdin_enterprises 7.0.6 7.0.6
Ghostscript Aladdin_enterprises 5.10.10_1 5.10.10_1
Ghostscript Aladdin_enterprises 5.10.10 5.10.10
Ghostscript Aladdin_enterprises 5.10.12cl 5.10.12cl
Ghostscript Aladdin_enterprises 7.0.5 7.0.5
Ghostscript Aladdin_enterprises 5.10cl 5.10cl
Ghostscript Aladdin_enterprises 4.3.2 4.3.2
Ghostscript Aladdin_enterprises 7.0.7 7.0.7
Ghostscript Aladdin_enterprises 6.52 6.52
Ghostscript Aladdin_enterprises 5.10.10_1 5.10.10_1
Ghostscript Aladdin_enterprises 5.10.16 5.10.16
Ghostscript Aladdin_enterprises 7.0.4 7.0.4

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