Security readout for executives and security teams
Plain-English summary
TensorFlow code that downloads and extracts archives can overwrite files if it processes a crafted archive. Business risk depends on whether your systems pass untrusted archives to tf.keras.utils.get_file with extract=True. The source notes TensorFlow's position that this helper is not intended for untrusted archives.
Executive priority
Treat as a targeted workflow risk, not an internet-wide emergency. Prioritize ML systems that ingest external archives automatically, especially production pipelines or shared environments where file overwrite could affect credentials, models, or application files.
Technical view
CVE-2021-35958 concerns TensorFlow through 2.5.0. When tf.keras.utils.get_file is used with extract=True, a crafted archive may cause arbitrary file overwrite during extraction. The record provides no CVSS score, CWE, confirmed patch, or active-exploitation evidence.
Likely exposure
Exposure is most likely in ML pipelines, notebooks, services, or build jobs using TensorFlow through 2.5.0 and tf.keras.utils.get_file(extract=True) on archives from users, partners, public URLs, or other untrusted sources.
Exploitation context
The provided sources support a crafted-archive arbitrary file overwrite condition, but do not show known exploitation in the wild. KEV status is false. Risk rises where extraction runs with broad filesystem write permissions or in automated pipelines.
Researcher notes
Key uncertainty is remediation status: the bundle names affected TensorFlow versions but does not provide a vendor fix. Focus validation on call-site trust boundaries, extraction privileges, and whether archives can influence paths during extraction. Avoid claiming exploitation without stronger evidence.
Mitigation direction
- Avoid using extract=True on untrusted archives.
- Restrict archive sources to trusted, integrity-verified locations.
- Check TensorFlow or Keras vendor guidance before relying on version upgrades as a fix.
- Run extraction with least-privilege filesystem permissions.
- Use a safer extraction workflow that rejects unsafe archive paths.
Validation and detection
- Inventory TensorFlow versions and flag deployments through 2.5.0.
- Search code for tf.keras.utils.get_file calls using extract=True.
- Determine whether archive URLs or files are user-controlled or externally supplied.
- Review extraction destinations and filesystem write permissions.
- Document any compensating controls around archive integrity validation.
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.
CVE-2021-35958 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
- Unknown
- CVSS
- Not scored
- Known Exploited
- No
- Published
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 and timeline data
No CVSS vectors or timeline events were available in the normalized CVE source material.
Source materials
- CVE List V5 sourceCVE List V5
- https://vuln.ryotak.me/advisories/52CVE reference · x_refsource_MISC
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137CVE reference · x_refsource_MISC
- https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractallCVE reference · x_refsource_MISC
- https://keras.io/api/CVE reference · x_refsource_MISC
- https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.mdCVE 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.
