CVE Vulnerabilities

CVE-2014-1859

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

Published: Jan 08, 2018 | Modified: Apr 22, 2019
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:P/A:N
RedHat/V3
Ubuntu
LOW

(1) core/tests/test_memmap.py, (2) core/tests/test_multiarray.py, (3) f2py/f2py2e.py, and (4) lib/tests/test_io.py in NumPy before 1.8.1 allow local users to write to arbitrary files via a symlink attack on a 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
Numpy Numpy * 1.8.0 (including)
Numpy Numpy 1.8.1-rc1 (including) 1.8.1-rc1 (including)
Python-numpy Ubuntu artful *
Python-numpy Ubuntu lucid *
Python-numpy Ubuntu precise *
Python-numpy Ubuntu quantal *
Python-numpy Ubuntu saucy *
Python-numpy Ubuntu trusty *
Python-numpy Ubuntu upstream *
Python-numpy Ubuntu utopic *
Python-numpy Ubuntu vivid *
Python-numpy Ubuntu wily *
Python-numpy Ubuntu yakkety *
Python-numpy 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