GHSA-wcv5-vrvr-3rx2: Integer Overflow or Wraparound in TensorFlow
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: tensorflow (PyPI) 2.6.3, 2.7.1, 2.5.3; tensorflow-cpu (PyPI) 2.6.3, 2.7.1, 2.5.3; tensorflow-gpu (PyPI) 2.6.3, 2.7.1, 2.5.3.
Low priority for now. Upgrade to tensorflow (PyPI) 2.6.3, 2.7.1, 2.5.3; tensorflow-cpu (PyPI) 2.6.3, 2.7.1, 2.5.3; tensorflow-gpu (PyPI) 2.6.3, 2.7.1, 2.5.3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: OSV
### Impact The Grappler component of TensorFlow is vulnerable to a denial of service via `CHECK`-failure (assertion failure) in [constant folding](https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/grappler/optimizers/constant_folding.cc#L963-L1035): ```cc for (const auto& output_prop : output_props) { const PartialTensorShape output_shape(output_prop.shape()); // ... } ``` The `output_prop` tensor has a shape that is controlled by user input and this can result in triggering one of the `CHECK`s in the `PartialTensorShape` constructor. This is an instance of [TFSA-2021-198](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2021-198.md) (CVE-2021-41197). ### Patches We have patched the issue in GitHub commit [be7b286d40bc68cb0b56f702186cc4837d508058](https://github.com/tensorflow/tensorflow/commit/be7b286d40bc68cb0b56f702186cc4837d508058). The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range. ### For more information Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.
- Published
- Feb 9, 2022
- Updated
- Dec 5, 2024
- EPSS
- —
- CWE
- CWE-190
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · —
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| PyPI | tensorflow | pkg:pypi/tensorflow |
| PyPI | tensorflow-cpu | pkg:pypi/tensorflow-cpu |
| PyPI | tensorflow-gpu | pkg:pypi/tensorflow-gpu |
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| PyPI | tensorflow | from 2.6.0 · before 2.6.3 | 2.6.3 |
| PyPI | tensorflow | from 2.7.0 · before 2.7.1 | 2.7.1 |
| PyPI | tensorflow | before 2.5.3 | 2.5.3 |
| PyPI | tensorflow-cpu | from 2.6.0 · before 2.6.3 | 2.6.3 |
| PyPI | tensorflow-cpu | from 2.7.0 · before 2.7.1 | 2.7.1 |
| PyPI | tensorflow-cpu | before 2.5.3 | 2.5.3 |
| PyPI | tensorflow-gpu | from 2.6.0 · before 2.6.3 | 2.6.3 |
| PyPI | tensorflow-gpu | from 2.7.0 · before 2.7.1 | 2.7.1 |
| PyPI | tensorflow-gpu | before 2.5.3 | 2.5.3 |
Same product
PyPI: all recordsOther highest-scoring records for the same primary product.
- GHSA-h6gw-r52c-724rNULL Pointer Dereference and Access of Uninitialized Pointer in TensorFlow37Monitor
- GHSA-43q8-3fv7-pr5xImproper Validation of Integrity Check Value in TensorFlow28Monitor
- GHSA-cqvq-fvhr-v6hc`CHECK` failure in `SobolSample` via missing validation0Monitor
Published before and after this one in the same product
- Later →GHSA-mw6j-hh29-h379May 25, 2022 · `CHECK` failure in depthwise ops via overflows0Monitor
- Later →GHSA-xf83-q765-xm6mNov 21, 2022 · `CHECK` fail in `TensorListScatter` and `TensorListScatterV2` in eager mode0Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| PyPI:tensorflow | 2.5.3 | Package registry (OSV) |
| PyPI:tensorflow | 2.6.3 | Package registry (OSV) |
| PyPI:tensorflow | 2.7.1 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.5.3 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.6.3 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.7.1 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.5.3 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.6.3 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.7.1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-190 · Integer Overflow or WraparoundCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.