Security readout for executives and security teams
Plain-English summary
This is a low-severity TensorFlow flaw that can crash affected machine-learning workloads when specially crafted input reaches the StringNGrams operation. It is not described as allowing data theft or code execution in the provided sources.
Executive priority
Handle through normal patch management unless TensorFlow processes untrusted input in production. Business risk is mainly service disruption, not compromise, based on the provided CVSS and advisory data.
Technical view
The bug is a heap buffer overflow in TensorFlow's StringNGrams kernel. Certain padding and token-count edge cases can lead the operator to read before the expected data buffer. CVSS 3.1 is 2.5, with local access, high complexity, low privileges, and availability impact only.
Likely exposure
Exposure is limited to environments running affected TensorFlow versions and reachable code paths that invoke tf.raw_ops.StringNGrams with attacker-influenced input. ML serving, data preprocessing, or notebook workloads that accept untrusted strings deserve review.
Exploitation context
Sources describe local, low-severity, high-complexity exploitation requiring low privileges, with availability impact only. The bundle does not cite KEV listing or active exploitation evidence; treat exploitation as unconfirmed.
Researcher notes
Affected ranges are TensorFlow before 2.1.4, 2.2.0 to before 2.2.3, 2.3.0 to before 2.3.3, and 2.4.0 to before 2.4.2. The fix is represented by the referenced upstream commit and release backports.
Mitigation direction
- Inventory services and notebooks using TensorFlow.
- Upgrade TensorFlow to 2.5.0 or patched supported branches.
- Use 2.4.2, 2.3.3, 2.2.3, or 2.1.4 where branch-pinning is required.
- Prioritize systems that process untrusted tensor or string inputs.
- Check vendor guidance if upgrade timing is constrained.
Validation and detection
- Confirm deployed TensorFlow versions against affected ranges.
- Search ML code for tf.raw_ops.StringNGrams usage.
- Verify patched versions in lockfiles, containers, and runtime environments.
- Review monitoring for unusual TensorFlow string preprocessing crashes.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-131: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2021-29542 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Low
- CVSS
- 2.5 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L11.4Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
2.5LowVector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4hrh-9vmp-2jggCVE reference · x_refsource_CONFIRM
- https://github.com/tensorflow/tensorflow/commit/ba424dd8f16f7110eea526a8086f1a155f14f22bCVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Incorrect Calculation of Buffer Size
Incorrect Calculation of Buffer Size represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
