CVE-2021-29581

Source
https://cve.org/CVERecord?id=CVE-2021-29581
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29581.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-29581
Aliases
Related
Published
2021-05-14T20:15:14.343Z
Modified
2026-02-16T07:50:59.487496Z
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. Due to lack of validation in tf.raw_ops.CTCBeamSearchDecoder, an attacker can trigger denial of service via segmentation faults. The implementation(https://github.com/tensorflow/tensorflow/blob/a74768f8e4efbda4def9f16ee7e13cf3922ac5f7/tensorflow/core/kernels/ctcdecoderops.cc#L68-L79) fails to detect cases when the input tensor is empty and proceeds to read data from a null buffer. 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-29581.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/b1b323042264740c398140da32e93fb9c2c9f33e",
        "digest": {
            "line_hashes": [
                "35131544870914750467398246513715684254",
                "253614551371292046979794549965898469602",
                "176046580648587117982932878608747448060",
                "243570862572388372255662333486599596627"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-29581-297f7178",
        "deprecated": false,
        "target": {
            "file": "tensorflow/core/kernels/ctc_decoder_ops.cc"
        }
    }
]