Miggo Logo

CVE-2022-21737:
Assertion failure based denial of service in Tensorflow

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.43492%
Published
2/9/2022
Updated
11/13/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
tensorflowpip< 2.5.32.5.3
tensorflowpip>= 2.6.0, < 2.6.32.6.3
tensorflowpip= 2.7.02.7.1
tensorflow-cpupip< 2.5.32.5.3
tensorflow-cpupip>= 2.6.0, < 2.6.32.6.3
tensorflow-cpupip= 2.7.02.7.1
tensorflow-gpupip< 2.5.32.5.3
tensorflow-gpupip>= 2.6.0, < 2.6.32.6.3
tensorflow-gpupip= 2.7.02.7.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerable functions are identified by analyzing the changes made to the TensorFlow codebase in the given commit. The patch adds input validation to the Compute methods of DenseBincountOp, SparseBincountOp, and RaggedBincountOp classes, indicating that these functions were previously vulnerable to denial of service attacks due to lack of validation on the 'size' input.

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* `**in*ount` op*r*tions](*ttps://*it*u*.*om/t*nsor*low/t*nsor*low/*lo*/****************************************/t*nsor*low/*or*/k*rn*ls/*in*ount_op.**) *llows m*li*ious us*rs to **us* **ni*l o* s*rvi** *y p*ssin* in

Reasoning

T** vuln*r**l* *un*tions *r* i**nti*i** *y *n*lyzin* t** ***n**s m*** to t** T*nsor*low *o****s* in t** *iv*n *ommit. T** p*t** ***s input v*li**tion to t** *omput* m*t*o*s o* **ns**in*ountOp, Sp*rs**in*ountOp, *n* R******in*ountOp *l*ss*s, in*i**tin