Symlink Attack Vulnerability in Python-Numpy Package: CVE-2014-1858

python-numpy Updated 03 Oct 2025

Summary

08/01/2018
N/A
Yes i
Medium
5.5

UBUNTU-CVE-2014-1858: 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. Affects python-numpy versions < 1:1.8.2-0ubuntu0.1. Fixed in 1:1.8.2-0ubuntu0.1. How to fix ↓

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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Python-Numpy is a widely used library for numerical computations in Python, providing support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. The library is essential for scientific computing and data analysis, making it a critical component in many Python-based applications. However, a vulnerability was identified in versions prior to 1.8.1, which allows local users to exploit symlink attacks on temporary files, potentially leading to unauthorized file writes.

Vulnerability Detail

The vulnerability, identified as CVE-2014-1858, exists in the init.py file of the f2py module within NumPy before version 1.8.1. It allows local users to create symbolic links to arbitrary files, which can be exploited during the creation of temporary files. This can lead to unauthorized file modifications or overwrites, posing a significant risk to system integrity and data security. The vulnerability has a CVSS score of 5.5, indicating a moderate level of severity.

How To Fix

Minimum fixed version

1:1.8.2-0ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-numpy

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, users can restrict access to the directories where temporary files are created, or avoid using the f2py module until the package is updated. However, this may limit functionality and is not a permanent solution.

Conclusion

In summary, CVE-2014-1858 is a significant vulnerability in the Python-Numpy package that can lead to unauthorized file writes through symlink attacks. It is crucial to update to the patched version to mitigate this risk. Users should also consider using tools like Vulert for ongoing vulnerability monitoring.

See every vulnerability recorded for python-numpy →

Share this vulnerability

FAQ

CVE-2014-1858 is a vulnerability in the Python-Numpy package that allows local users to exploit symlink attacks, potentially leading to unauthorized file writes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The CVSS score of CVE-2014-1858 is 5.5, indicating a moderate level of severity.

If immediate updates are not possible, consider restricting access to the directories where temporary files are created or avoid using the f2py module.

You can visit Vulert at https://vulert.com for real-time monitoring and alerts on open-source vulnerabilities in your software.

Related vulnerabilities

Recent vulnerabilities recorded for python-numpy.

How To Fix

Minimum fixed version

1:1.8.2-0ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-numpy

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