{"data":{"id":"ba5400f3-5ba0-4847-967a-1a6eac36a55f","title":"CVE-2021-29521: TensorFlow is an end-to-end open source platform for machine learning. Specifying a negative dense shape in…","summary":"TensorFlow's tf.raw_ops.SparseCountSparseOutput crashes with a segmentation fault when the dense shape argument contains a negative value. The count_ops.cc kernel assumes the first dense shape element is positive and uses it to initialize a BatchedMap<T> std::vector, so the broken invariants trigger the crash.","solution":"Ensuring that the dense_shape argument is a valid tensor shape (all elements non-negative) solves this issue. The fix will be included in TensorFlow 2.5.0, and the commit will also be cherry-picked to TensorFlow 2.4.2 and TensorFlow 2.3.3.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-29521","publishedAt":"2021-05-15T00:15:11.567Z","cveId":"CVE-2021-29521","cweIds":["CWE-131"],"cvssScore":"2.5","cvssSeverity":"low","severity":"low","attackType":["denial_of_service"],"issueType":"vulnerability","affectedPackages":["tensorflow@>= 2.3.0, < 2.3.3 (fixed: 2.3.3)","tensorflow@>= 2.4.0, < 2.4.2 (fixed: 2.4.2)","tensorflow-cpu@>= 2.3.0, < 2.3.3 (fixed: 2.3.3)","tensorflow-cpu@>= 2.4.0, < 2.4.2 (fixed: 2.4.2)","tensorflow-gpu@>= 2.3.0, < 2.3.3 (fixed: 2.3.3)","tensorflow-gpu@>= 2.4.0, < 2.4.2 (fixed: 2.4.2)"],"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":null,"headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.00189,"epssCheckedAt":"2026-11-04T18:09:12.821Z","kevDateAdded":null,"advisoryAliases":["GHSA-hr84-fqvp-48mm"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T04:00:42.424Z","patchAvailable":true,"disclosureDate":null,"fixReleasedAt":"2021-06-15T21:03:30.442Z","daysToFix":31,"fixCheckedAt":"2026-10-29T21:52:18.031Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"tensorflow","fixedVersion":"2.4.2","matchedVersion":"2.4.2","fixReleasedAt":"2021-06-15T21:03:59.541Z","daysToFix":31,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"},{"ecosystem":"pypi","name":"tensorflow","fixedVersion":"2.3.3","matchedVersion":"2.3.3","fixReleasedAt":"2021-06-15T21:03:30.442Z","daysToFix":31,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"},{"ecosystem":"pypi","name":"tensorflow-gpu","fixedVersion":"2.3.3","matchedVersion":"2.3.3","fixReleasedAt":"2021-06-15T21:08:37.651Z","daysToFix":31,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"},{"ecosystem":"pypi","name":"tensorflow-gpu","fixedVersion":"2.4.2","matchedVersion":"2.4.2","fixReleasedAt":"2021-06-15T21:09:49.706Z","daysToFix":31,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"},{"ecosystem":"pypi","name":"tensorflow-cpu","fixedVersion":"2.4.2","matchedVersion":"2.4.2","fixReleasedAt":"2021-06-15T21:05:30.770Z","daysToFix":31,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"},{"ecosystem":"pypi","name":"tensorflow-cpu","fixedVersion":"2.3.3","matchedVersion":"2.3.3","fixReleasedAt":"2021-06-15T21:04:54.421Z","daysToFix":31,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-10-29T21:52:17.877Z"}]}}