# CVE-2026-25087: Apache Arrow: Potential use-after-free when reading IPC file with pre-buffering

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.11% (percentile 65, 2026-11-26)
- **CWE:** CWE-416
- **Aliases:** GHSA-rgxp-2hwp-jwgg, PYSEC-2026-113
- **Published:** 2026-02-17T13:18:25.494Z
- **Modified:** 2026-09-10T03:50:35.750Z

## Who should check

- Projects that depend on PyPI package pyarrow (\>= 15.0.0, \< 23.0.1)
- Anyone running Apache Software Foundation Apache Arrow \>= 15.0.0, \<= 23.0.0

## Description

Use After Free vulnerability in Apache Arrow C++.

This 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.

Pre-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.

The 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.

Advice for users of Arrow C++:

1. check whether you enable pre-buffering on the IPC file reader (using \`RecordBatchFileReader::PreBufferMetadata\`)

2. if so, either disable pre-buffering (which may have adverse performance consequences), or switch to Arrow 23.0.1 which is not vulnerable

## Affected and fixed versions

- PyPI `pyarrow`: affected \>= 15.0.0, \< 23.0.1; fixed 23.0.1 (osv)
- Apache Software Foundation Apache Arrow: \>= 15.0.0, \<= 23.0.0 (cvelist)

## Mitigation

- Upgrade pyarrow to 23.0.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-25087. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-25087.md
Affected: pyarrow >= 15.0.0, < 23.0.1
Fixed in: 23.0.1

Steps:
1. Search this machine and project for pyarrow (PyPI), Apache Software Foundation Apache Arrow: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-25087 being exploited?

There is no confirmed exploitation: CVE-2026-25087 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.11% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-25087?

High: CVSS 7.0 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-25087?

pyarrow \>= 15.0.0, \< 23.0.1.

### Is there a fix for CVE-2026-25087?

Yes. Fixed in 23.0.1. Upgrade pyarrow to 23.0.1 or later.

### How do I check if I'm affected by CVE-2026-25087?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh>
- vendor: <http://www.openwall.com/lists/oss-security/2026/02/17/4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-25087>
- vendor: <https://github.com/advisories/GHSA-rgxp-2hwp-jwgg>
- patch: <https://github.com/apache/arrow/pull/48925>
- other: <https://github.com/apache/arrow>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-25087>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rgxp-2hwp-jwgg> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-113> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-25087> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-25087>
