Skip to content
Noroxi
OSV ecosystem advisory

GHSA-h6gw-r52c-724r: NULL Pointer Dereference and Access of Uninitialized Pointer in TensorFlow

CriticalCVSS 9.3 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 37/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. No account or password is required. 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 [code for boosted trees in TensorFlow](https://github.com/tensorflow/tensorflow/blob/e0b6e58c328059829c3eb968136f17aa72b6c876/tensorflow/core/kernels/boosted_trees/stats_ops.cc) is still missing validation. This allows malicious users to read and write outside of bounds of heap allocated data as well as trigger denial of service (via dereferencing `nullptr`s or via `CHECK`-failures). This follows after CVE-2021-41208 where these APIs were still vulnerable to multiple security issues. **Note**: Given that the boosted trees implementation in TensorFlow is unmaintained, it is recommend to no longer use these APIs. Instead, please use the downstream [TensorFlow Decision Forests](https://github.com/tensorflow/decision-forests) project which is newer and supports more features. These APIs are now deprecated in TensorFlow 2.8. We will remove TensorFlow's boosted trees APIs in subsequent releases. ### Patches We have patched the known issues in multiple GitHub commits. 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. This should allow users to use existing boosted trees APIs for a while until they migrate to [TensorFlow Decision Forests](https://github.com/tensorflow/decision-forests), while guaranteeing that known vulnerabilities are fixed. ### 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. ### Attribution These vulnerabilities have been reported by Yu Tian of Qihoo 360 AIVul Team and Faysal Hossain Shezan from University of Virginia. Some of the issues have been discovered internally after a careful audit of the APIs.

Published
Feb 9, 2022
Updated
Dec 5, 2024
EPSS
—

Report tools

JSON

Action score

37

Monitor

Low priority for now.

CVSS
37 / 40 · 9.3 / 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.

Follow GHSA-h6gw-r52c-724r

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
PyPItensorflow
PyPItensorflow-cpu
PyPItensorflow-gpu

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
PyPItensorflowfrom 2.6.0 · before 2.6.32.6.3
PyPItensorflowfrom 2.7.0 · before 2.7.12.7.1
PyPItensorflowbefore 2.5.32.5.3
PyPItensorflow-cpufrom 2.6.0 · before 2.6.32.6.3
PyPItensorflow-cpufrom 2.7.0 · before 2.7.12.7.1
PyPItensorflow-cpubefore 2.5.32.5.3
PyPItensorflow-gpufrom 2.6.0 · before 2.6.32.6.3
PyPItensorflow-gpufrom 2.7.0 · before 2.7.12.7.1
PyPItensorflow-gpubefore 2.5.32.5.3

Same product

PyPI: all records

Other highest-scoring records for the same primary product.

Published before and after this one in the same product

  • Later →GHSA-mw6j-hh29-h379May 25, 2022 · `CHECK` failure in depthwise ops via overflows
    0Monitor
  • Later →GHSA-xf83-q765-xm6mNov 21, 2022 · `CHECK` fail in `TensorListScatter` and `TensorListScatterV2` in eager mode
    0Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
PyPI:tensorflow2.5.3Package registry (OSV)
PyPI:tensorflow2.6.3Package registry (OSV)
PyPI:tensorflow2.7.1Package registry (OSV)
PyPI:tensorflow-cpu2.5.3Package registry (OSV)
PyPI:tensorflow-cpu2.6.3Package registry (OSV)
PyPI:tensorflow-cpu2.7.1Package registry (OSV)
PyPI:tensorflow-gpu2.5.3Package registry (OSV)
PyPI:tensorflow-gpu2.6.3Package registry (OSV)
PyPI:tensorflow-gpu2.7.1Package 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.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system 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
high · data or configuration can be modified
Availability
high · the service can be disrupted

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/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.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records