CVE-2014-1859 Numpy arbitrary file write via symlink attack

Medium 5.5 Published Updated

Local attackers can write to arbitrary files via symlink attacks on temporary files in NumPy test and f2py modules.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2014-1859?

CVE-2014-1859 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 8 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

(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: CWE-59

Which versions are affected by CVE-2014-1859?

3 open source packages ship an affected version, including numpy. It affects 3 products.

PackageAffectedFixed in
numpy PyPIAll versions1.8.1
numpy PyPIAll versions1.8.1
numpy PyPIAll versions1.8.1

Products include Fedoraproject Fedora, Numpy Numpy, Redhat Enterprise Linux.

How do I fix CVE-2014-1859?

Upgrade numpy to 1.8.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2014-1859 being exploited?

There is no known exploitation of CVE-2014-1859 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-2fc2-6r4j-p65h, PYSEC-2018-34.

Is CVE-2014-1859 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free