{"data":{"id":"8a5d16c3-b242-4e7d-9510-8ef10972f3c8","title":"CVE-2021-37679: TensorFlow is an end-to-end open source platform for machine learning. In affected versions it is possible to nest a…","summary":"TensorFlow affected versions allow a `tf.map_fn` to be nested within another `tf.map_fn` call. When the input is a `RaggedTensor` and no function signature is provided, the output buffer is filled with uninitialized heap contents, so the last row of `t` can expose other memory information. The flaw lies in the conversion from a `Variant` tensor to a `RaggedTensor`, whose implementation does not check that all inner shapes match, and this can also cause data loss if the input tensor is altered.","solution":"Patched in GitHub commit 4e2565483d0ffcadc719bd44893fb7f609bb5f12. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-37679","publishedAt":"2021-08-13T03:15:08.287Z","cveId":"CVE-2021-37679","cweIds":["CWE-125","CWE-681"],"cvssScore":"7.1","cvssSeverity":"high","severity":"high","attackType":["data_extraction"],"issueType":"vulnerability","affectedPackages":["tensorflow@< 2.3.4 (fixed: 2.3.4)","tensorflow@>= 2.4.0, < 2.4.3 (fixed: 2.4.3)","tensorflow@= 2.5.0 (fixed: 2.5.1)","tensorflow-cpu@< 2.3.4 (fixed: 2.3.4)","tensorflow-cpu@>= 2.4.0, < 2.4.3 (fixed: 2.4.3)","tensorflow-cpu@= 2.5.0 (fixed: 2.5.1)","tensorflow-gpu@< 2.3.4 (fixed: 2.3.4)","tensorflow-gpu@>= 2.4.0, < 2.4.3 (fixed: 2.4.3)","tensorflow-gpu@= 2.5.0 (fixed: 2.5.1)"],"affectedPackageNames":["tensorflow","tensorflow-cpu","tensorflow-gpu"],"affectedPackageRefs":["pypi:tensorflow","pypi:tensorflow-cpu","pypi:tensorflow-gpu"],"affectedVendors":["Google"],"affectedVendorsRaw":["TensorFlow"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"TensorFlow heap memory leak through nested tf.map_fn with RaggedTensor","headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.00181,"epssCheckedAt":"2026-11-04T12:08:33.950Z","kevDateAdded":null,"advisoryAliases":["GHSA-g8wg-cjwc-xhhp"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T03:59:22.047Z","patchAvailable":true,"disclosureDate":null,"fixReleasedAt":"2021-08-10T21:51:35.142Z","daysToFix":-3,"fixCheckedAt":"2026-10-29T21:50:21.680Z","capecIds":["CAPEC-540"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.95,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"tensorflow","fixedVersion":"2.3.4","matchedVersion":"2.3.4","fixReleasedAt":"2021-08-10T21:51:35.142Z","daysToFix":-3,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-gpu","fixedVersion":"2.5.1","matchedVersion":"2.5.1","fixReleasedAt":"2021-08-10T21:58:54.547Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-cpu","fixedVersion":"2.5.1","matchedVersion":"2.5.1","fixReleasedAt":"2021-08-10T21:53:19.960Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-gpu","fixedVersion":"2.4.3","matchedVersion":"2.4.3","fixReleasedAt":"2021-08-10T21:57:52.135Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow","fixedVersion":"2.5.1","matchedVersion":"2.5.1","fixReleasedAt":"2021-08-10T21:51:57.218Z","daysToFix":-3,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-gpu","fixedVersion":"2.3.4","matchedVersion":"2.3.4","fixReleasedAt":"2021-08-10T21:54:46.058Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-cpu","fixedVersion":"2.3.4","matchedVersion":"2.3.4","fixReleasedAt":"2021-08-10T21:52:20.445Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow","fixedVersion":"2.4.3","matchedVersion":"2.4.3","fixReleasedAt":"2021-08-10T21:52:30.867Z","daysToFix":-3,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"},{"ecosystem":"pypi","name":"tensorflow-cpu","fixedVersion":"2.4.3","matchedVersion":"2.4.3","fixReleasedAt":"2021-08-10T21:53:37.078Z","daysToFix":-3,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:50:21.527Z"}]}}