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

numpy Updated 02 Oct 2025

Summary

14/05/2022
Yes i
High
5.5

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for numpy.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback