{"id":"CVE-2021-41203","published":"2021-11-05T21:05:13Z","modified":"2024-08-04T03:08:31Z","title":"Missing validation during checkpoint loading","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an open source platform for machine learning. In affected versions an attacker can trigger undefined behavior, integer overflows, segfaults and `CHECK`-fail crashes if they can change saved checkpoints from outside of TensorFlow. This is because the checkpoints loading infrastructure is missing validation for invalid file formats. The fixes will be included in TensorFlow 2.7.0. We will also cherrypick these commits on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00189,"percentile":0.08668,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-7pxj-m4jf-r6h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/368af875869a204b4ac552b9ddda59f6a46a56ec","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/abcced051cb1bd8fb05046ac3b6023a7ebcc4578","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/b619c6f865715ca3b15ef1842b5b95edbaa710ad","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/e8dc63704c88007ee4713076605c90188d66f3d2","tags":["x_refsource_MISC"]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":1.73},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.6.0, < 2.6.1",">= 2.5.0, < 2.5.2","< 2.4.4"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.6.0, <2.6.1",">=2.5.0, <2.5.2","<2.4.4",">=2.7.0rc0, <2.7.0"],"patched":["2.6.1","2.5.2","2.4.4","2.7.0"],"from":["GHSA-7pxj-m4jf-r6h2","PYSEC-2021-396"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.6.0, <2.6.1",">=2.5.0, <2.5.2","<2.4.4",">=2.7.0rc0, <2.7.0"],"patched":["2.6.1","2.5.2","2.4.4","2.7.0"],"from":["GHSA-7pxj-m4jf-r6h2","PYSEC-2021-613"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.6.0, <2.6.1",">=2.5.0, <2.5.2","<2.4.4",">=2.7.0rc0, <2.7.0"],"patched":["2.6.1","2.5.2","2.4.4","2.7.0"],"from":["GHSA-7pxj-m4jf-r6h2","PYSEC-2021-811"],"provenance":"source"}],"summary":{"text":"The flaw is missing validation of invalid file formats in TensorFlow's checkpoint loading infrastructure, affecting the tensorflow product. An attacker who can modify saved checkpoint files from outside TensorFlow, which requires local access and low privileges with no user interaction, can trigger undefined behavior, integer overflows, segfaults, and CHECK-fail crashes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:59Z"},"euvd":{"id":"EUVD-2021-0426","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2020-15203","children":[{"from":"CVE-2021-41203","to":"CVE-2022-23564","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/BUILD","tensorflow/core/framework/tensor.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/368af875869a204b4ac552b9ddda59f6a46a56ec","https://github.com/tensorflow/tensorflow/commit/abcced051cb1bd8fb05046ac3b6023a7ebcc4578","https://github.com/tensorflow/tensorflow/commit/14fea662350e7c26eb5fe1be2ac31704e5682ee6"],"basis":"rarely changed file"}]},{"from":"CVE-2021-41203","to":"CVE-2022-29203","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/framework/BUILD"],"commits":["https://github.com/tensorflow/tensorflow/commit/368af875869a204b4ac552b9ddda59f6a46a56ec","https://github.com/tensorflow/tensorflow/commit/abcced051cb1bd8fb05046ac3b6023a7ebcc4578","https://github.com/tensorflow/tensorflow/commit/acd56b8bcb72b163c834ae4f18469047b001fadf"],"basis":"rarely changed file"}]}]}}