# CVE-2021-29513

Name
CVE-2021-29513
Description
TensorFlow is an end-to-end open source platform for machine learning. Calling TF operations with tensors of non-numeric types when the operations expect numeric tensors result in null pointer dereferences. The conversion from Python array to C++ array(https://github.com/tensorflow/tensorflow/blob/ff70c47a396ef1e3cb73c90513da4f5cb71bebba/tensorflow/python/lib/core/ndarray_tensor.cc#L113-L169) is vulnerable to a type confusion. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

## References

Type URI
MISC https://github.com/tensorflow/tensorflow/commit/030af767d357d1b4088c4a25c72cb3906abac489

## Match rules

CPE URI Source package Min version Max version
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= None <= 2.1.4:
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.2.0: <= 2.2.3:
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.3.0: <= 2.3.3:
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.4.0: <= 2.4.2:
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= None <= 2.1.4
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.2.0 <= 2.2.3
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.3.0 <= 2.3.3
`cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*` tensorflow >= 2.4.0 <= 2.4.2

## Vulnerable and fixed packages

Source package Branch Version Maintainer Status
{"ft_lang_label":"__label__en","ft_lang_prob":0.83349067,"math_prob":0.5819396,"size":659,"snap":"2023-40-2023-50","text_gpt3_token_len":175,"char_repetition_ratio":0.15267175,"word_repetition_ratio":0.0,"special_character_ratio":0.24279211,"punctuation_ratio":0.16535433,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96125233,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-02T19:11:45Z\",\"WARC-Record-ID\":\"<urn:uuid:c2e0b835-534c-412c-8cf8-0efe7ff3609e>\",\"Content-Length\":\"6613\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4930a3aa-9bfa-4966-bf6a-f5be415f6ac8>\",\"WARC-Concurrent-To\":\"<urn:uuid:fc5ce7b3-abba-4d55-8531-f43a54c4cc77>\",\"WARC-IP-Address\":\"178.79.172.48\",\"WARC-Target-URI\":\"https://security.alpinelinux.org/vuln/CVE-2021-29513\",\"WARC-Payload-Digest\":\"sha1:AMII2XANV4TQNLWSV42UDTCAV5GK2MTH\",\"WARC-Block-Digest\":\"sha1:3PMLM3SGTKWJDZIZ2SY6PTT76V5I7PRG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100448.65_warc_CC-MAIN-20231202172159-20231202202159-00079.warc.gz\"}"}