CVE Vulnerabilities

CVE-2004-0967

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

Published: Feb 09, 2005 | Modified: Apr 03, 2025
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
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
GhostscriptAladdin_enterprises4.3 (including)4.3 (including)
GhostscriptAladdin_enterprises4.3.2 (including)4.3.2 (including)
GhostscriptAladdin_enterprises5.10.10 (including)5.10.10 (including)
GhostscriptAladdin_enterprises5.10.10_1 (including)5.10.10_1 (including)
GhostscriptAladdin_enterprises5.10.12cl (including)5.10.12cl (including)
GhostscriptAladdin_enterprises5.10.15 (including)5.10.15 (including)
GhostscriptAladdin_enterprises5.10.16 (including)5.10.16 (including)
GhostscriptAladdin_enterprises5.10cl (including)5.10cl (including)
GhostscriptAladdin_enterprises5.50 (including)5.50 (including)
GhostscriptAladdin_enterprises5.50.8 (including)5.50.8 (including)
GhostscriptAladdin_enterprises5.50.8_7 (including)5.50.8_7 (including)
GhostscriptAladdin_enterprises6.51 (including)6.51 (including)
GhostscriptAladdin_enterprises6.52 (including)6.52 (including)
GhostscriptAladdin_enterprises6.53 (including)6.53 (including)
GhostscriptAladdin_enterprises7.0.4 (including)7.0.4 (including)
GhostscriptAladdin_enterprises7.0.5 (including)7.0.5 (including)
GhostscriptAladdin_enterprises7.0.6 (including)7.0.6 (including)
GhostscriptAladdin_enterprises7.0.7 (including)7.0.7 (including)
Red Hat Enterprise Linux 3RedHatghostscript-0:7.05-32.1.10*
Gs-commonUbuntudapper*
Gs-commonUbuntuedgy*
Gs-commonUbuntufeisty*

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