CVE-2023-25676: TensorFlow - Segfault in tf.raw_ops.ParallelConcat

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2023-25676: TensorFlow has null dereference on ParallelConcat with XLA. Affects tensorflow versions < 2.12.0. Fixed in 2.12.0. How to fix ↓

Also tracked for

The same CVE-2023-25676 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open source machine learning platform developed by Google. It provides a comprehensive set of tools and libraries for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. This vulnerability affects versions prior to 2.12.0 and 2.11.1 with XLA enabled. XLA (Accelerated Linear Algebra) is a domain-specific compiler for linear algebra operations in TensorFlow. It aims to optimize the execution of TensorFlow models on various hardware platforms. The vulnerability occurs in the tf.raw_ops.ParallelConcat function when provided with a shape parameter that has a rank less than or equal to zero. This leads to a segmentation fault (segfault) due to a nullptr dereference. The issue has been addressed in TensorFlow 2.12.0 and 2.11.1.

Vulnerability Detail

The vulnerability in TensorFlow arises from a nullptr dereference in the tf.raw_ops.ParallelConcat function when an invalid shape parameter is provided. This can occur when the rank of the shape is not greater than zero. A nullptr dereference can lead to a segmentation fault, causing the application to crash. An attacker could potentially exploit this vulnerability to cause a denial of service (DoS) attack by providing a malicious input that triggers the segfault. It is important to note that this vulnerability only affects versions prior to 2.12.0 and 2.11.1 with XLA enabled.

How To Fix

Minimum fixed version

2.12.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround available for this vulnerability. The recommended solution is to upgrade to the fixed versions of TensorFlow.

Conclusion

The vulnerability in TensorFlow versions prior to 2.12.0 and 2.11.1 with XLA enabled can lead to a segmentation fault and potential denial of service attacks. It is crucial to upgrade to the fixed versions to ensure the security and stability of the application. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open source machine learning platform developed by Google. It provides tools and libraries for building and deploying machine learning models.

XLA (Accelerated Linear Algebra) is a domain-specific compiler for linear algebra operations in TensorFlow. It optimizes the execution of TensorFlow models on various hardware platforms.

The vulnerability occurs in the tf.raw_ops.ParallelConcat function when provided with an invalid shape parameter that has a rank less than or equal to zero.

A nullptr dereference occurs when a null pointer is accessed, leading to a segmentation fault and application crash.

The vulnerability can be mitigated by upgrading TensorFlow to version 2.12.0 or 2.11.1, which include a fix for the nullptr dereference issue.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Minimum fixed version

2.12.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback