question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency on versions of Numpy with publicly-known security vulnerabilities (Fixed by Numpy 1.22.2)

See original GitHub issue

Reporting a bug

  • I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
  • I have included a self contained code sample to reproduce the problem. i.e. it’s possible to run as ‘python bug.py’.
    • ** Note: This bug focuses on publicly-known security vulnerabilities of a numba dependency (Numpy versions < 1.22.2) and would be be well-demonstrated by code.

Numba 0.55.1 has a dependency on Numpy with versions where: 1.18 <= version < 1.22.

However, these versions of numpy are exposed to publicly known security vulnerabilities.

These vulnerabilities are fixed in Numpy 1.22.0 and, most importantly, in Numpy 1.22.2:

  • Numpy 1.22.2 includes a fix for CVE-2021-41495: Null Pointer Dereference vulnerability exists in numpy.sort in NumPy in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays.
  • Numpy 1.22.0 includes a fix for CVE-2021-41496: Buffer overflow in the array_from_pyobj function of fortranobject.c, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values.

I am hoping to use numba as part of an enterprise software package that will not accept security vulnerabilities and am being blocked by this upper limit.

Numpy 1.22.0, while being a major version bump, contained relatively few deprecations and issues that would result in backwards compatibility problems. Instead, this major version bump was mostly additive. Moreover, the changes following (1.22.1, 1.22.2) we predominantly bug fixes. Therefore, I expect that this upgrade would not require major overhaul on behalf of the numba developer team, could be validated relatively quickly, and would add great value to developers depending on secure versions of numba and the value it adds to our products.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
stuartarchibaldcommented, May 24, 2022

Quick update… A 0.55.2 release is being prepared (milestone: https://github.com/numba/numba/milestone/64) which will include a backport of the NumPy 1.22 support patch(es) and so it will support NumPy 1.22. It will hopefully be shipped within the next few days.

1reaction
stuartarchibaldcommented, May 27, 2022

https://github.com/numba/numba/issues/8066 notes the 0.55.2 release (with NumPy 1.22 support) as shipped for public availability. Tag and details here: https://github.com/numba/numba/releases/tag/0.55.2

Thanks for your patience on this, the backporting of NumPy 1.22 and Apple M1 support took a little longer than originally anticipated.

Closing this issue as resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy vulnerabilities | Snyk
version published direct vulnerabilities 1.24.0rc2 4 Dec, 2022 0. C. 0. H. 0. M. 0. L 1.24.0rc1 24 Nov, 2022 0. C. 0. H. 0....
Read more >
Maintenance of python packages (<=3.7) with numpy ...
I maintain a package that requires numpy . Recently, a vulnerability has been reported, which is resolved in numpy versions higher than ...
Read more >
NumPy 1.22.0 Release Notes
The Python versions supported in this release are 3.8-3.10, Python 3.7 has been dropped. Note that the Mac wheels are now based on...
Read more >
Numpy Numpy : List of security vulnerabilities - CVE Details
# CVE ID CWE ID Vulnerability Type(s) Publish Date Update Date Score Gaine... 1 CVE‑2021‑41496 120 DoS Overflow 2021‑12‑17 2022‑07‑25 2.1 None 2 CVE‑2021‑41495 476...
Read more >
Security Bulletin 27 Jul 2022
This flaw is due to an incomplete fix for CVE-2020-1747. ... CVE-2022-22978, In Spring Security versions 5.5.6 and 5.6.3 and older ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found