CVE-2014-1859: Numpy arbitrary file write via symlink attack
Summary
CVE-2014-1859: Numpy arbitrary file write via symlink attack. Affects numpy versions < 1.8.1. Fixed in 1.8.1. How to fix ↓
Also tracked for
- python-numpy · Debian:10
The same CVE-2014-1859 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
NumPy is a popular open-source library for numerical computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. NumPy is widely used in scientific and data analysis applications. However, versions before 1.8.1 are vulnerable to an arbitrary file write vulnerability via a symlink attack on a temporary file.
Vulnerability Detail
The vulnerability exists in multiple files within the NumPy package, including test_memmap.py, test_multiarray.py, f2py2e.py, and test_io.py. These files allow local users to write to arbitrary files by exploiting a symlink attack on a temporary file. By creating a symbolic link to a target file, an attacker can trick the affected code into writing data to the linked file instead of the intended temporary file. This can lead to unauthorized modification or disclosure of sensitive information.
How To Fix
Latest published version: 2.5.4 as of 23 Oct 2026
pip install --upgrade "numpy==2.5.4"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.8.1
This is the first release that contains the fix.
pip install --upgrade "numpy==1.8.1"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to the latest version of NumPy is not feasible, users can implement a workaround by manually applying the necessary patches to the vulnerable files. The specific changes required may vary depending on the version of NumPy in use. It is recommended to consult the official NumPy documentation or seek assistance from the NumPy community for guidance on applying the patches.
Conclusion
In conclusion, the vulnerability in NumPy versions before 1.8.1 allows local users to write to arbitrary files through a symlink attack on a temporary file. To mitigate this vulnerability, it is crucial to upgrade to the latest version of NumPy or apply the necessary patches. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for numpy →
FAQ
NumPy is an open-source library for numerical computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays.
The vulnerability allows local users to write to arbitrary files on the system, potentially leading to unauthorized modification or disclosure of sensitive information.
To fix this vulnerability, it is recommended to upgrade to NumPy version 1.8.1 or later. Alternatively, users can manually apply the necessary patches to the vulnerable files.
Yes, if upgrading to the latest version of NumPy is not feasible, users can implement a workaround by manually applying the necessary patches to the vulnerable files.
For more information about NumPy vulnerabilities, it is recommended to refer to the official NumPy documentation or seek assistance from the NumPy community.
References
Related vulnerabilities
Recent vulnerabilities recorded for numpy.