numpy is vulnerable to Stack-based Buffer Overflow
25
Low Risk
NumPy's npy__cpu_check_env parses NPY_ENABLE_CPU_FEATURES and NPY_DISABLE_CPU_FEATURES during import and copies unrecognized or unsupported feature names into stack diagnostic buffers. An accepted maximum-length environment value can write a terminating NUL one byte past the nexist buffer, and repeating unsupported dispatched feature names can overflow the smaller notsupp buffer, which was sized from NPY_WITH_CPU_DISPATCH rather than the accepted environment-variable length. Those out-of-bounds writes corrupt stack memory and can crash the process. The fix sizes both diagnostic buffers from the accepted input length and avoids the trailing-space-and-trim pattern.
You are affected if you are using a version that falls within the vulnerable range and your process imports NumPy with attacker-influenced NPY_ENABLE_CPU_FEATURES or NPY_DISABLE_CPU_FEATURES environment variables.
numpy is vulnerable to Stack-based Buffer Overflow in versions 1.20.0 - 2.5.1.
Upgrade the numpy library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.