Out of bounds write in grappler in Tensorflow
TensorFlow is an open source platform for machine learning. The function MakeGrapplerFunctionItem takes arguments that determine the sizes of inputs and outputs. If the inputs given are greater than or equal to the sizes of the outputs, an out-of-bounds memory read or a crash is triggered. We have patched the issue in GitHub commit a65411a1d69edfb16b25907ffb8f73556ce36bb7. The fix will be included in TensorFlow 2.11.0. We will also cherrypick this commit on TensorFlow 2.8.4, 2.9.3, and 2.10.1.
- Published
- Dec 6, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.5% · 39th percentile
- CWE
- CWE-787
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
36
Monitor
Low priority for now.
- CVSS
- 36 / 40 · 9.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.5%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 9.1
- CNA · GitHub_M
- 7.1
- 2.0 point gap
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| tensorflow | cpe:2.3:a:google:tensorflow |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- google tensorflowbefore 2.8.4
- google tensorflow2.9.0 and later · before 2.9.3
- google tensorflow2.10.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
tensorflow tensorflow
- >= 2.10.0, < 2.10.1, >= 2.9.0, < 2.9.3, < 2.8.4affected
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.10.0 · before 2.10.1 | 2.10.1 |
| PyPI | tensorflow | from 2.9.0 · before 2.9.3 | 2.9.3 |
| PyPI | tensorflow | before 2.8.4 | 2.8.4 |
| PyPI | tensorflow-cpu | from 2.10.0 · before 2.10.1 | 2.10.1 |
| PyPI | tensorflow-cpu | from 2.9.0 · before 2.9.3 | 2.9.3 |
| PyPI | tensorflow-cpu | before 2.8.4 | 2.8.4 |
| PyPI | tensorflow-gpu | from 2.10.0 · before 2.10.1 | 2.10.1 |
| PyPI | tensorflow-gpu | from 2.9.0 · before 2.9.3 | 2.9.3 |
| PyPI | tensorflow-gpu | before 2.8.4 | 2.8.4 |
Same product
google: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-25668TensorFlow vulnerable to heap out-of-buffer read in the QuantizeAndDequantize operation39Monitor
- CVE-2023-25664TensorFlow vulnerable to Heap Buffer Overflow in AvgPoolGrad39Monitor
- CVE-2022-41900FractionalMaxPool and FractionalAVGPool heap out-of-bounds acess in Tensorflow39Monitor
- CVE-2022-35939Out of bounds write in `scatter_nd` op in TensorFlow Lite39Monitor
- CVE-2022-23587Integer overflow in Tensorflow39Monitor
- CVE-2020-15208Data corruption in tensorflow-lite39Monitor
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.10.1 | Package registry (OSV) |
| PyPI:tensorflow | 2.8.4 | Package registry (OSV) |
| PyPI:tensorflow | 2.9.3 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.10.1 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.8.4 | Package registry (OSV) |
| PyPI:tensorflow-cpu | 2.9.3 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.10.1 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.8.4 | Package registry (OSV) |
| PyPI:tensorflow-gpu | 2.9.3 | 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.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/utils/functions.cc#L221
- github.com/tensorflow/tensorflow/commit/a65411a1d69edfb16b25907ffb8f73556ce36bb7
- github.com/tensorflow/tensorflow/security/advisories/GHSA-cg88-rpvp-cjv5
Vendor advisories and official records. Exploit/PoC links are deliberately left out.