CVE Vulnerabilities

CVE-2014-1859

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

Published: Jan 08, 2018 | Modified: Nov 21, 2024
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
root.io logo minimus.io logo echo.ai logo

(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

NameVendorStart VersionEnd Version
NumpyNumpy*1.8.0 (including)
NumpyNumpy1.8.1-rc1 (including)1.8.1-rc1 (including)
Python-numpyUbuntuartful*
Python-numpyUbuntulucid*
Python-numpyUbuntuprecise*
Python-numpyUbuntuquantal*
Python-numpyUbuntusaucy*
Python-numpyUbuntutrusty*
Python-numpyUbuntuupstream*
Python-numpyUbuntuutopic*
Python-numpyUbuntuvivid*
Python-numpyUbuntuwily*
Python-numpyUbuntuyakkety*
Python-numpyUbuntuzesty*

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