Browse / Unsafe Model Loading and Supply Chain / CVE-2018-8825
Improper Restriction of Operations within the Bounds of a Memory Buffer in Google TensorFlow
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Memory corruption
- Also involves
- AI Framework and Platform Flaws
- Affected
- tensorflow (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.8% chance of exploitation in 30 days
How it works, in short
A malformed TFLite model file passed to the TOCO converter overflows a memory buffer during parsing, which can lead to code execution. (Our summary, written by a model. The source text is below.)
Details
Google TensorFlow 1.7 and below is affected by: Buffer Overflow. The impact is: execute arbitrary code (local). Users passing a malformed or malicious version of a TFLite graph into TOCO will cause TOCO to crash or cause a buffer overflow, potentially allowing malicious code to be executed.
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-8825
- https://github.com/tensorflow/tensorflow/commit/41335abb46f80ca644b5738550daef6136ba5476
- https://github.com/tensorflow/tensorflow/commit/8badd11d875a826bd318ed439909d5c47a7fb811
- https://github.com/advisories/GHSA-frxx-2m33-6wcr
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2019-226.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2019-233.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2019-208.yaml
- https://github.com/tensorflow/tensorflow
- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2018-003.md
Source: GitHub Advisory Database, used under CC BY 4.0.