CVE-2026-25087: Apache Arrow Potential Use-after-free When Reading IPC Vulnerability
HIGHCVE-2026-25087 is a HIGH (CVSS 7.0) potential use-after-free when reading ipc vulnerability (CWE-416: Use After Free) affecting Apache Arrow libraries in the PyPI ecosystem. The issue involves potential use-after-free when reading ipc file with pre-buffering. Remediation is available by upgrading affected packages to version 23.0.1.
CVE-2026-25087 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H).
How to Fix CVE-2026-25087
To remediate this vulnerability, upgrade all affected Apache Arrow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyarrow>=23.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyarrow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-25087, inspect your installed packages using pip:
pip show pyarrow
Analyze the terminal output to locate any version of Apache Arrow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 23.0.1), your application is affected.
Note: The pip show pyarrow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. In Apache Arrow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25087 Affected Apache Arrow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyarrow
|
PyPI |
≥ 15.0.0
< 23.0.1
|
23.0.1
|
References
Frequently Asked Questions
What is CVE-2026-25087?
Which Apache Arrow versions are affected?
What version fixes CVE-2026-25087?
Is pyarrow affected?
What is the CVSS score of CVE-2026-25087?
What CWE is associated with CVE-2026-25087?
How can I check PyPI dependencies for CVE-2026-25087?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rgxp-2hwp-jwgg",
"modified" : "2026-06-05T21:39:35Z",
"published" : "2026-02-17T15:31:35Z",
"aliases" : [ "CVE-2026-25087" ],
"summary" : "Apache Arrow: Potential use-after-free when reading IPC file with pre-buffering",
"details" : "Use After Free vulnerability in Apache Arrow C++.\n\nThis issue affects Apache Arrow C++ from 15.0.0 through 23.0.0. It can be triggered when reading an Arrow IPC file (but not an IPC stream) with pre-buffering enabled, if the IPC file contains data with variadic buffers (such as Binary View and String View data). Depending on the number of variadic buffers in a record batch column and on the temporal sequence of multi-threaded IO, a write to a dangling pointer could occur. The value (a `std::shared_ptr<Buffer>` object) that is written to the dangling pointer is not under direct control of the attacker.\n\nPre-buffering is disabled by default but can be enabled using a specific C++ API call (`RecordBatchFileReader::PreBufferMetadata`). The functionality is not exposed in language bindings (Python, Ruby, C GLib), so these bindings are not vulnerable.\n\nThe most likely consequence of this issue would be random crashes or memory corruption when reading specific kinds of IPC files. If the application allows ingesting IPC files from untrusted sources, this could plausibly be exploited for denial of service. Inducing more targeted kinds of misbehavior (such as confidential data extraction from the running process) depends on memory allocation and multi-threaded IO temporal patterns that are unlikely to be easily controlled by an attacker.\n\nAdvice for users of Arrow C++:\n\n1. check whether you enable pre-buffering on the IPC file reader (using `RecordBatchFileReader::PreBufferMetadata`)\n\n2. if so, either disable pre-buffering (which may have adverse performance consequences), or switch to Arrow 23.0.1 which is not vulnerable",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyarrow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.0.0"
}, {
"fixed" : "23.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25087"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/arrow/pull/48925"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/arrow"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/02/17/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-416" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-05T21:39:35Z",
"nvd_published_at" : "2026-02-17T14:16:01Z"
}
}