CVE Vulnerabilities

CVE-2014-1838

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

Published: Mar 11, 2014 | Modified: Oct 30, 2018
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

The (1) extract_keys_from_pdf and (2) fill_pdf functions in pdf_ext.py in logilab-commons before 0.61.0 allows local users to overwrite arbitrary files and possibly have other unspecified impact via a symlink attack on /tmp/toto.fdf.

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
Opensuse Opensuse 12.3 (including) 12.3 (including)
Opensuse Opensuse 13.1 (including) 13.1 (including)
Logilab-common Ubuntu artful *
Logilab-common Ubuntu lucid *
Logilab-common Ubuntu precise *
Logilab-common Ubuntu quantal *
Logilab-common Ubuntu saucy *
Logilab-common Ubuntu trusty *
Logilab-common Ubuntu utopic *
Logilab-common Ubuntu vivid *
Logilab-common Ubuntu wily *
Logilab-common Ubuntu yakkety *
Logilab-common 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