# CVE-2014-1858: PYSEC-2018-33 - __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.

Source: https://junglewise.ai/threats/cve-2014-1858-arbitrary-file-write-in-numpy  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-01-08  
License: CC BY 4.0 with a link back

CVE-2014-1858 · Severity: low · CVSS 3 · Published 2018-01-08

__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.

Technologies: [numpy (PyPI)](https://junglewise.ai/threats/technologies/numpy). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2014-1858 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2014-1858 being exploited in the wild.

**How severe is CVE-2014-1858?** Low severity, with a CVSS score of 3, published 8 January 2018.

**Which products and versions are affected?** numpy (PyPI) ECOSYSTEM:introduced=0,fixed=1.8.1, GIT:introduced=0,fixed=0bb46c1448b0d3f5453d5182a17ea7ac5854ee15|ECOSYSTEM:introduced=0,fixed=1.8.1.

**Is there a fix for CVE-2014-1858?** Yes. numpy (PyPI): upgrade to 1.8.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2014-1858?** Check whether you run numpy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- numpy (PyPI): upgrade to 1.8.1 or later

  ```sh
  pip install "numpy>=1.8.1"
  ```


## Affected products

- numpy (PyPI) ECOSYSTEM:introduced=0,fixed=1.8.1, GIT:introduced=0,fixed=0bb46c1448b0d3f5453d5182a17ea7ac5854ee15|ECOSYSTEM:introduced=0,fixed=1.8.1

## Identifiers

- CVE-2014-1858
- GHSA-cw6w-4rcx-xphc
- PYSEC-2018-33

## Related threats

- [NumPy insecure deserialization in numpy.load](https://junglewise.ai/threats/cve-2019-6446-numpy-insecure-deserialization-in-numpy-load)
- [Buffer Copy without Checking Size of Input in NumPy](https://junglewise.ai/threats/cve-2021-41496-buffer-copy-without-checking-size-of-input-in-numpy)
- [NumPy NULL Pointer Dereference](https://junglewise.ai/threats/cve-2021-41495-numpy-null-pointer-dereference)
- [Incorrect Comparison in NumPy](https://junglewise.ai/threats/cve-2021-34141-incorrect-comparison-in-numpy)
- [NumPy Buffer Overflow (Disputed)](https://junglewise.ai/threats/cve-2021-33430-numpy-buffer-overflow-disputed)
