Miggo Logo

CVE-2021-37663: Incomplete validation in `QuantizeV2`

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.00931%
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:H/I:H/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 vulnerability stems from missing validation logic in QuantizeV2Op's Compute function as shown in the patch commit. The original code (before 6da6620) did not properly validate that: 1) min_range and max_range have the same number of elements, 2) axis is within valid range for input tensor rank, and 3) min_range/max_range lengths match the input's axis dimension. The patch adds multiple OP_REQUIRES checks for these conditions, confirming these were the missing validations. The function's central role in parameter processing and the direct correlation between the vulnerability description and added validation checks make this identification high confidence.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t

Reasoning

T** vuln*r**ility st*ms *rom missin* v*li**tion lo*i* in Qu*ntiz*V*Op's *omput* *un*tion *s s*own in t** p*t** *ommit. T** ori*in*l *o** (***or* *******) *i* not prop*rly v*li**t* t**t: *) min_r*n** *n* m*x_r*n** **v* t** s*m* num**r o* *l*m*nts, *)