CVE-2014-1858 Arbitrary file write in NumPy
Local attackers can overwrite arbitrary files via symlink attacks on temporary files in NumPy's f2py module.
- 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-1858?
CVE-2014-1858 is a medium-severity path traversal vulnerability in n/a, 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
__init__.py in f2py in NumPy before 1.8.1 allows local users to write to arbitrary files via a symlink attack on a temporary file.
Weakness: CWE-20
Which versions are affected by CVE-2014-1858?
3 open source packages ship an affected version, including numpy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
numpy PyPI | All versions | 1.8.1 |
numpy PyPI | All versions | 1.8.1 |
numpy PyPI | All versions | 1.8.1 |
Products include Numpy Numpy.
How do I fix CVE-2014-1858?
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-1858 being exploited?
There is no known exploitation of CVE-2014-1858 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-cw6w-4rcx-xphc, PYSEC-2018-33.