Advisories
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
1,675 items
TensorFlow's sparse matrix multiplication code binds a reference to nullptr when the dimensions of a or b are 0 or less. This is undefined behavior, and writing to the resulting empty output tensor can cause a heap out-of-bounds access.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseCVE-2021-41217 affects TensorFlow versions where building the control flow graph for a model dereferences a null pointer. The code assumes the first node in a pairing, such as an `Enter` node, always exists when it reaches the second node, such as an `Exit` node. When it does not, `parent` is `nullptr` and dereferencing it crashes the process.
Fix: Fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
CVE-2021-41215 affects TensorFlow, an open source machine learning platform. In affected versions, the shape inference code for `DeserializeSparse` can trigger a null pointer dereference, because the function assumes the `serialize_sparse` tensor has positive rank with `3` as its last dimension.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
CVE-2021-41214 affects TensorFlow versions where the shape inference code for `tf.ragged.cross` binds a reference to `nullptr`, causing undefined behavior. The flaw is tracked as CWE-824, Access of Uninitialized Pointer, and the NVD record was published on 11/05/2021.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseCVE-2021-41212 affects TensorFlow, an open source platform for machine learning. In affected versions, the shape inference code for `tf.ragged.cross` can trigger an out-of-bounds read of a heap-allocated array, classified as CWE-125.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherry-picked onto TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseCVE-2021-41211 affects TensorFlow. The shape inference code for `QuantizeV2` performs a heap out-of-bounds read whenever `axis` is a negative value less than `-1`, because the code assumes `axis` is a valid index into the `input` tensor's dimensions. The fix will be included in TensorFlow 2.7.0 and cherry-picked to TensorFlow 2.6.1, the only other affected version.
Fix: Fixed in TensorFlow 2.7.0; the fix will also be cherry-picked to TensorFlow 2.6.1.
CVE-2021-41205 affects TensorFlow, where the shape inference functions for the `QuantizeAndDequantizeV*` operations can trigger a read outside the bounds of a heap-allocated array. The flaw is classified as CWE-125 (Out-of-bounds Read), and the NVD record was published on 11/05/2021.
Fix: The fix will be included in TensorFlow 2.7.0. The same commit will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, which the source says are also affected and still in supported range.
CVE-2021-41204 affects TensorFlow versions where the Grappler optimizer's constant folding phase may deep copy a resource tensor. This causes a segfault, since those tensors are meant to remain unchanged.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseTensorFlow's checkpoint loading infrastructure lacks validation for invalid file formats. An attacker who can modify saved checkpoints from outside TensorFlow can trigger undefined behavior, integer overflows, segfaults and CHECK-fail crashes in affected versions.
Fix: The fixes will be included in TensorFlow 2.7.0. The commits will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseCVE-2021-41210 affects TensorFlow, an open source machine learning platform. In affected versions, the shape inference functions for `SparseCountSparseOutput` can trigger an out-of-bounds read of a heap allocated array, classified as CWE-125.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseTensorFlow's `EinsumHelper::ParseEquation()` is meant to set the `input_has_ellipsis` flags and the `*output_has_ellipsis` boolean to true or false, depending on whether an ellipsis appears. The function only ever sets these flags to `true` and never to `false`. Callers that assume the function always sets them therefore read uninitialized variables.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2 and TensorFlow 2.4.4, which are affected and still in supported range.
CVE-2021-41200 affects TensorFlow. In affected versions, calling `tf.summary.create_file_writer` with non-scalar arguments causes a crash due to a `CHECK`-fail. The weakness is classified as CWE-617 (Reachable Assertion).
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseTensorFlow's tf.image.resize crashes the process in affected versions when called with a large input argument. The output tensor's element count overflows the int64_t type, and a CHECK statement detects the overflow and aborts the process.
Fix: The fix will be included in TensorFlow 2.7.0. It will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseCVE-2021-41198 affects TensorFlow. When `tf.tile` is called with a large input argument, the number of elements in the output tensor overflows the `int64_t` type, and a `CHECK` statement detects this and aborts the process, crashing TensorFlow.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseTensorFlow allows a tensor to have many dimensions, each of arbitrary size, but the total element count must fit in an `int64_t`. When that count overflows, `MultiplyWithoutOverflow` returns a negative value, which in most of the codebase triggers a `CHECK`-failure that crashes the binary. The flaw resembles CVE-2021-29584.
Fix: Fixed in TensorFlow 2.7.0. The fix will also be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
CVE-2021-41196 affects TensorFlow versions where Keras pooling layers can crash with a segfault. The fault occurs when the pool size is 0 or a dimension is negative, because pooling operations do not check that sliding-window values are strictly positive.
Fix: The fix will be included in TensorFlow 2.7.0. The same commit will be cherry-picked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4.
NVD/CVE DatabaseTensorFlow's tf.math.segment_* operations, on both CPU and GPU, abort with a CHECK failure when a segment id in segment_ids is large, causing denial of service. The output shape is computed with AddDim, which fails with a std::abort if the tensor's element count overflows an int64_t. The source attributes the issue to similarity with CVE-2021-29584 and other localized TensorFlow API reports.
Fix: The fix will be included in TensorFlow 2.7.0. The commit will also be cherrypicked to TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, which are affected and still in supported range.
Rasa, an open source machine learning framework for text and voice conversations, has a vulnerability in its function that loads trained model `tar.gz` files. A malicious actor can craft a `model.tar.gz` file that overwrites or replaces bot files in the bot directory.
Fix: The vulnerability is fixed in Rasa 2.8.10. For users unable to update, ensure that users do not upload untrusted model files, and restrict CLI or API endpoint access where a malicious actor could target a deployed Rasa…
ParlAI, a framework for training and evaluating AI models on open dialogue datasets, is vulnerable to a YAML deserialization attack in affected versions. The flaw comes from unsafe loading, which leads to arbitrary code execution.
Fix: Patched by avoiding unsafe loading; users should update to version above v1.1.0. If upgrading is not possible, change the Loader to SafeLoader as a workaround.
NVD/CVE DatabaseTensorFlow's shape inference code leaves shape and type information from `ShapeAndType` structs, produced by functions such as `MutableHashTableShape`, owned by an inference context that is cleaned up almost immediately. If upstream code accesses that shape information, it can trigger a segfault. `ShapeRefiner` already clones normal output shapes to avoid this, but the same handling was missing for shapes and types.
Fix: Patched in GitHub commit ee119d4a498979525046fba1c3dd3f13a039fbb1. 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.