Miggo Logo

CVE-2021-37640: Integer division by 0 in sparse reshaping

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.00644%
Published
8/25/2021
Updated
11/13/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.3.42.3.4
tensorflowpip>= 2.4.0, < 2.4.32.4.3
tensorflowpip= 2.5.02.5.1
tensorflow-cpupip< 2.3.42.3.4
tensorflow-cpupip>= 2.4.0, < 2.4.32.4.3
tensorflow-cpupip= 2.5.02.5.1
tensorflow-gpupip< 2.3.42.3.4
tensorflow-gpupip>= 2.4.0, < 2.4.32.4.3
tensorflow-gpupip= 2.5.02.5.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The analysis is based on the provided patch and the understanding of the vulnerability. The functions identified are directly related to the changes made in the patch to fix the division by zero issue.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t T** impl*m*nt*tion o* `t*.r*w_ops.Sp*rs*R*s**p*` **n ** m*** to tri***r *n int**r*l *ivision *y * *x**ption: ```pyt*on import t*nsor*low *s t* t*.r*w_ops.Sp*rs*R*s**p*( input_in*i**s = np.on*s((*,*)), input_s**p* = np.*rr*y([*,*,*]),

Reasoning

T** *n*lysis is **s** on t** provi*** p*t** *n* t** un**rst*n*in* o* t** vuln*r**ility. T** `*un*tions` i**nti*i** *r* *ir**tly r*l*t** to t** ***n**s m*** in t** p*t** to *ix t** *ivision *y z*ro issu*.