TensorFlow can read memory outside its bounds from a malicious checkpoint file
What this means
An attacker who can control a checkpoint file could make TensorFlow crash or leak data from the machine's memory. If TensorFlow is used to serve predictions over a network, an attacker could send a malicious model file to trigger the crash or memory leak remotely. This could expose secrets, keys, or other sensitive data that was in memory at the time.
SecurityElites Manager Brief: the decision in one minute
A malicious checkpoint file can cause TensorFlow to read memory it should not access. This can crash the process or leak sensitive data from memory. All teams using TensorFlow versions 1.0.0 to 1.7.0 need to upgrade immediately.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or ML infrastructure team (whoever manages TensorFlow installations). |
| Likely effort | About 30 minutes per environment: check which services use TensorFlow, upgrade the package, and restart the services. It may take longer if you have many services or if you need to test in a staging environment first. |
Questions to ask your team or supplier
- Do we load checkpoint files from users, the internet, or any source outside our direct control? If so, we need to upgrade immediately.
- Which services and teams use TensorFlow, and have they already upgraded to 1.7.1 or later?
Message you can forward to the owning team
Security notice: TensorFlow can read memory outside its bounds from a malicious checkpoint file (CVE-2018-7575)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to tensorflow 1.7.1, tensorflow-gpu 1.7.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2018-7575-tensorflow-can-read-memory-outside-its-bounds-from-a/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00523What is at stake in your AI setup
- Model checkpoint files: a malicious checkpoint could cause the system to leak or corrupt model weights and architecture.
- Machine memory and secrets: an out-of-bounds read could expose API keys, database passwords, or other sensitive data stored in memory.
- Training or inference: if the process crashes, model serving or retraining could be interrupted, affecting availability.
Who is exposed
- Teams running TensorFlow or TensorFlow-GPU versions 1.0.0 to 1.7.0 anywhere (laptops, servers, cloud).
- Services that load checkpoint files from untrusted sources or accept them from users.
- Machine learning pipelines that process model files in production.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| tensorflow PyPI | 1.0.0 up to, but not including, 1.7.1 | 1.7.1 or later |
| tensorflow-gpu PyPI | 1.0.0 up to, but not including, 1.7.1 | 1.7.1 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
|---|---|
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
Read from the official severity rating: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Kind of coding mistake
- CWE-190
If you cannot upgrade today
- Until you can upgrade, disable loading of checkpoint files from untrusted sources. Only load checkpoints that you created, control, and verify.
- If you must load external checkpoint files, do so in an isolated, sandboxed process or container that does not have access to other sensitive data or systems.
Signs it may already have been used against you
- TensorFlow process crashes or exits with an out-of-bounds memory error when loading a checkpoint file.
- Unexpected process termination in logs or crash dumps from services that load checkpoint files, especially after receiving a file from an external source.
- Memory access violation or segmentation fault in TensorFlow code paths that read checkpoint metadata.
SecurityElites Fix Guide: step by step
- Find all installations of TensorFlowSearch your codebase, container images, and servers for TensorFlow. Use your package manager to list installed versions. Check pip freeze outputs, requirements.txt files, and Docker images. Look for both tensorflow and tensorflow-gpu.
- Check which versions are installedFor each installation, record the exact version number. Versions 1.0.0 to 1.7.0 are affected. Version 1.7.1 and later are safe.
- Assess where checkpoint files come fromList which services load checkpoint files and where those files come from. If files come from users, the internet, or any untrusted source, that service is at high risk. If files only come from your own storage and are carefully controlled, risk is lower but you should still upgrade.
- Back up your current setupTake a snapshot or image of each service and environment before making changes. This lets you roll back quickly if the upgrade breaks something.
- Upgrade to TensorFlow 1.7.1 or laterUpdate tensorflow and tensorflow-gpu to version 1.7.1 or a later version. Use your package manager (pip, conda, apt, etc.) to perform the upgrade. Update all copies: development machines, staging, production, and containers.
- Restart all affected servicesAfter the upgrade, restart every service or application that uses TensorFlow. Do this one at a time and watch for errors. If a service fails to start, check the logs and roll back the upgrade for that service.
- Verify the upgrade workedCheck that the installed version is 1.7.1 or later in every location you upgraded. Run a quick test: load a known-good checkpoint file and confirm the service still works. Confirm services are running and healthy.
- Investigate if checkpoint files were processed before the upgradeReview logs and checkpoint usage from before the upgrade. If you find evidence of an attack, treat it as a security incident.
How to confirm it is fixed: Confirm that all installations of tensorflow and tensorflow-gpu are version 1.7.1 or later, and that services have restarted successfully and are functioning normally.
SecurityElites Quick Fixes: copy and paste
Upgrade tensorflow with pipupgrade
pip install --upgrade "tensorflow>=1.7.1"
pip show tensorflow | grep VersionPin it in requirements.txtupgrade
tensorflow>=1.7.1Upgrade tensorflow-gpu with pipupgrade
pip install --upgrade "tensorflow-gpu>=1.7.1"
pip show tensorflow-gpu | grep VersionPin it in requirements.txtupgrade
tensorflow-gpu>=1.7.1Check installed TensorFlow version using Pythonfor this issue
import tensorflow as tf
print(tf.__version__)List TensorFlow in pipfor this issue
pip list | grep -i tensorflowTest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2018-7575) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - tensorflow (PyPI): must be 1.7.1 or later
- tensorflow-gpu (PyPI): must be 1.7.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## TensorFlow can read memory outside its bounds from a malicious checkpoint file (CVE-2018-7575)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-00523 https://securityelites.com/ai-vulnerabilities/cve-2018-7575-tensorflow-can-read-memory-outside-its-bounds-from-a/
### Why this matters
An attacker who can control a checkpoint file could make TensorFlow crash or leak data from the machine's memory. If TensorFlow is used to serve predictions over a network, an attacker could send a malicious model file to trigger the crash or memory leak remotely. This could expose secrets, keys, or other sensitive data that was in memory at the time.
### What to do
1. Find all installations of TensorFlow
2. Check which versions are installed
3. Assess where checkpoint files come from
4. Back up your current setup
5. Upgrade to TensorFlow 1.7.1 or later
6. Restart all affected services
7. Verify the upgrade worked
8. Investigate if checkpoint files were processed before the upgrade
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2018-7575-tensorflow-can-read-memory-outside-its-bounds-from-a/
### Done when
- [ ] tensorflow is at 1.7.1 or later everywhere it is installed
- [ ] tensorflow-gpu is at 1.7.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that all installations of tensorflow and tensorflow-gpu are version 1.7.1 or later, and that services have restarted successfully and are functioning normally.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- TensorFlow can crash or run attacker code when given out-of-bounds axis Critical · CVE-2023-25668
- TensorFlow boosted trees can crash or allow memory access outside bounds Critical · GHSA-h6gw-r52c-724r
- TensorFlow boosted trees can crash or allow heap memory read/write Critical · CVE-2021-41208
- TensorFlow segment sum can write outside heap memory bounds Critical · CVE-2020-15212
- TensorFlow segment sum can crash or corrupt memory if segment IDs are unsorted Critical · CVE-2020-15214
The same kind of mistake in other AI tools
- jncraton languagemodels can run attacker code via model templates High · CVE-2026-139989
- DeepSeek-AI DeepGEMM can write data outside memory bounds in attention code High · CVE-2026-139817
- NLTK can run untrusted dot command from writable directory High · CVE-2026-128134
- rmcp OAuth resource parameter not validated, allowing token theft High · CVE-2026-63127
- n8n workflow expressions can run code with full server access High · CVE-2026-65591
Change history
- 30 Apr 2019: Made public
- 2 Dec 2026: Published
Official record
### Issue Description Google TensorFlow 1.7.x and earlier is affected by a Buffer Overflow vulnerability. The type of exploitation is context-dependent. The block size in meta file might contain a large int64 value which causes an integer overflow upon addition. Subsequent code using n as index may cause an out-of-bounds read.### Impact A maliciously crafted meta checkpoint could be used to cause the TensorFlow process to perform an out of bounds read on in process memory.
Weakness type: CWE-190
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2018-7575For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.