CVE-2021-29519

Source
https://cve.org/CVERecord?id=CVE-2021-29519
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29519.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29519
Aliases
Related
Published
2021-05-14T20:15:11.480Z
Modified
2026-02-21T01:29:09.316753Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. The API of tf.raw_ops.SparseCross allows combinations which would result in a CHECK-failure and denial of service. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/3d782b7d47b1bf2ed32bd4a246d6d6cadc4c903d/tensorflow/core/kernels/sparsecrossop.cc#L114-L116) is tricked to consider a tensor of type tstring which in fact contains integral elements. Fixing the type confusion by preventing mixing DT_STRING and DT_INT64 types solves this issue. 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.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29519.json"
vanir_signatures
[
    {
        "id": "CVE-2021-29519-0dd7cc9f",
        "target": {
            "function": "ValidateInput",
            "file": "tensorflow/core/kernels/sparse_cross_op.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/b1cc5e5a50e7cee09f2c6eb48eb40ee9c4125025",
        "digest": {
            "function_hash": "130342139269504088076764693872616337560",
            "length": 2830.0
        },
        "signature_type": "Function"
    },
    {
        "id": "CVE-2021-29519-80d21d2e",
        "target": {
            "file": "tensorflow/core/kernels/sparse_cross_op.cc"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/tensorflow/tensorflow/commit/b1cc5e5a50e7cee09f2c6eb48eb40ee9c4125025",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "256636748043249681873866895206394724535",
                "312451947312717767256760545154702797935",
                "122150029948065352684984747351409898414",
                "280301859650971932057387605060238066224",
                "33417065409690747893785936484699392860",
                "239129514477343093466692278146394943487",
                "52944011659043100807285725253382170346",
                "43669630295865809770599504552175117409",
                "297918352857671795486982719306831960785",
                "282589221582168803870673714666164379662",
                "284699328473846372968477334678367751119",
                "63268561322274005123833328984847187965",
                "154984739973294359131324206430004363968",
                "249095016082583295962500880526325386717",
                "256412866331640892462074538979259620241",
                "156318210550066424726301107944852104149",
                "106330643672165513623277237663651938014",
                "105636737493971997197976286208329551152",
                "94206706756925639502309783242631531490",
                "171575937090622739162304099868836635132",
                "317614926629187703724406534476623327391",
                "244438813058267017176307449376377005152",
                "236426833160401848982533479508134718298",
                "322699573092126221944047727792487974679",
                "327746036804984812410608266190634345187",
                "234970537535586533354837717416676219709",
                "230094059336673568710173101038374743489",
                "251236488219319220335671116444947127557",
                "170577144811387021224433783263759638659",
                "189286259274647084593944439280174852206",
                "25129008934926547642281506050334868411",
                "191735126960400767383108477474986395983",
                "215634673441910154712298591417153825092",
                "12729469507683112987811355774503471750",
                "166439952431012219366212054987679485124",
                "230094059336673568710173101038374743489",
                "251236488219319220335671116444947127557",
                "113616801581370089587017435157375944786",
                "198989917371177505519585749195330498736",
                "280177778005665782301462017742836980450",
                "230094059336673568710173101038374743489",
                "251236488219319220335671116444947127557",
                "284403526972689746586774322824493160182",
                "177178553569239707004918862774506809854",
                "61776339989714874884542389083573777698"
            ]
        },
        "signature_type": "Line"
    }
]