CVE-2014-1859:
Numpy arbitrary file write via symlink attack
5.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.22579%
CWE
Published
5/14/2022
Updated
10/1/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
numpy | pip | < 1.8.1 | 1.8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure use of tempfile.mktemp()
across multiple test files, which creates predictable temporary filenames without atomically creating the file. This allows local attackers to perform symlink attacks by pre-creating the file or directory. The GitHub commit explicitly replaces mktemp()
with secure alternatives (e.g., NamedTemporaryFile
, mkdtemp
) in these functions, confirming their vulnerability. Each listed function directly used mktemp()
in a context where temporary file creation was required, making them clear vectors for the symlink attack described in CVE-2014-1859.