Skip to content

Commit ae9ecec

Browse files
Update dependency pyarrow to v23 [SECURITY] (#8795)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [pyarrow](https://redirect.github.com/apache/arrow) | `21.0.0` → `23.0.1` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pyarrow/23.0.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pyarrow/21.0.0/23.0.1?slim=true) | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/357) for more information. --- ### Apache Arrow: Potential use-after-free when reading IPC file with pre-buffering [CVE-2026-25087](https://nvd.nist.gov/vuln/detail/CVE-2026-25087) / [GHSA-rgxp-2hwp-jwgg](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) <details> <summary>More information</summary> #### Details 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 #### Severity - CVSS Score: 7.0 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H` #### References - [https://nvd.nist.gov/vuln/detail/CVE-2026-25087](https://nvd.nist.gov/vuln/detail/CVE-2026-25087) - [https://github.com/apache/arrow/pull/48925](https://redirect.github.com/apache/arrow/pull/48925) - [https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh](https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh) - [http://www.openwall.com/lists/oss-security/2026/02/17/4](http://www.openwall.com/lists/oss-security/2026/02/17/4) - [https://github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml) - [https://github.com/advisories/GHSA-rgxp-2hwp-jwgg](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Apache Arrow: Potential use-after-free when reading IPC file with pre-buffering [CVE-2026-25087](https://nvd.nist.gov/vuln/detail/CVE-2026-25087) / [GHSA-rgxp-2hwp-jwgg](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) / PYSEC-2026-113 <details> <summary>More information</summary> #### Details 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 #### Severity - CVSS Score: 7.0 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H` #### References - [https://nvd.nist.gov/vuln/detail/CVE-2026-25087](https://nvd.nist.gov/vuln/detail/CVE-2026-25087) - [https://github.com/apache/arrow/pull/48925](https://redirect.github.com/apache/arrow/pull/48925) - [https://github.com/apache/arrow](https://redirect.github.com/apache/arrow) - [https://github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml](https://redirect.github.com/pypa/advisory-database/tree/main/vulns/pyarrow/PYSEC-2026-113.yaml) - [https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh](https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh) - [http://www.openwall.com/lists/oss-security/2026/02/17/4](http://www.openwall.com/lists/oss-security/2026/02/17/4) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-rgxp-2hwp-jwgg) and the [GitHub Advisory Database](https://redirect.github.com/github/advisory-database) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### [CVE-2026-25087](https://nvd.nist.gov/vuln/detail/CVE-2026-25087) / [GHSA-rgxp-2hwp-jwgg](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) / PYSEC-2026-113 <details> <summary>More information</summary> #### Details 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 #### Severity - CVSS Score: 7.0 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H` #### References - [http://www.openwall.com/lists/oss-security/2026/02/17/4](http://www.openwall.com/lists/oss-security/2026/02/17/4) - [https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh](https://lists.apache.org/thread/mpm4ld1qony30tchfpjtk5b11tcyvmwh) - [https://github.com/apache/arrow/pull/48925](https://redirect.github.com/apache/arrow/pull/48925) - [https://github.com/advisories/GHSA-rgxp-2hwp-jwgg](https://redirect.github.com/advisories/GHSA-rgxp-2hwp-jwgg) This data is provided by [OSV](https://osv.dev/vulnerability/PYSEC-2026-113) and the [PyPI Advisory Database](https://redirect.github.com/pypa/advisory-database) ([CC-BY 4.0](https://redirect.github.com/pypa/advisory-database/blob/main/LICENSE)). </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/vortex-data/vortex). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjUuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJjaGFuZ2Vsb2cvY2hvcmUiXX0=--> --------- Signed-off-by: Robert Kruszewski <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Kruszewski <[email protected]>
1 parent 94e593e commit ae9ecec

11 files changed

Lines changed: 95 additions & 88 deletions

File tree

‎docs/user-guide/pandas.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ convert:
3838
... {'name': 'Mikhail', 'age': 57},
3939
... ])
4040
>>> struct_arr.to_pandas()
41-
age name
42-
0 25 Joseph
43-
1 31 Narendra
44-
2 33 Angela
45-
3 57 Mikhail
41+
name age
42+
0 Joseph 25
43+
1 Narendra 31
44+
2 Angela 33
45+
3 Mikhail 57
4646
```
4747

4848
{func}`~vortex.array` converts from a Pandas DataFrame into a Vortex array:

‎docs/user-guide/pyarrow.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ Struct arrays convert to Arrow tables with {meth}`.Array.to_arrow_table`:
9797
... ])
9898
>>> struct_arr.to_arrow_table()
9999
pyarrow.Table
100-
age: int64
101100
name: string
101+
age: int64
102102
----
103-
age: [[25,31,33,57]]
104103
name: [["Joseph","Narendra","Angela","Mikhail"]]
104+
age: [[25,31,33,57]]
105105
```

‎docs/user-guide/vortex-python.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ A list of {class}`dict` produces a struct array. Missing values may appear at an
4949
... None,
5050
... ])
5151
>>> arr.dtype
52-
struct({"age": int(64, nullable=True), "name": utf8(nullable=True)}, nullable=True)
52+
struct({"name": utf8(nullable=True), "age": int(64, nullable=True)}, nullable=True)
5353
```
5454

5555
{func}`~vortex.array` also accepts {class}`pyarrow.Array`, {class}`pyarrow.Table`,

‎uv.lock‎

Lines changed: 39 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vortex-python/python/vortex/arrays.py‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ def _Array_to_arrow_table(self: _arrays.Array) -> pyarrow.Table:
8686
... ])
8787
>>> array.to_arrow_table()
8888
pyarrow.Table
89-
age: int64
9089
name: string
90+
age: int64
9191
----
92-
age: [[25,31,33,57]]
9392
name: [["Joseph","Narendra","Angela","Mikhail"]]
93+
age: [[25,31,33,57]]
9494
9595
"""
9696
array = self.to_arrow_array()
@@ -125,11 +125,11 @@ def _Array_to_pandas(self: _arrays.Array) -> pandas.DataFrame:
125125
... {'name': 'Mikhail', 'age': 57},
126126
... ])
127127
>>> array.to_pandas()
128-
age name
129-
0 25 Joseph
130-
1 31 Narendra
131-
2 33 Angela
132-
3 57 Mikhail
128+
name age
129+
0 Joseph 25
130+
1 Narendra 31
131+
2 Angela 33
132+
3 Mikhail 57
133133
134134
"""
135135
import pandas
@@ -172,16 +172,16 @@ def _Array_to_polars_dataframe(
172172
... ])
173173
>>> array.to_polars_dataframe()
174174
shape: (4, 2)
175-
┌─────┬──────────┐
176-
│ age ┆ name │
177-
│ --- ┆ --- │
178-
│ i64 ┆ str │
179-
╞═════╪══════════╡
180-
│ 25 ┆ Joseph │
181-
│ 31 ┆ Narendra │
182-
│ 33 ┆ Angela │
183-
│ 57 ┆ Mikhail │
184-
└─────┴──────────┘
175+
┌──────────┬─────┐
176+
│ name ┆ age │
177+
│ --- ┆ --- │
178+
│ str ┆ i64 │
179+
╞══════════╪═════╡
180+
│ Joseph ┆ 25 │
181+
│ Narendra ┆ 31 │
182+
│ Angela ┆ 33 │
183+
│ Mikhail ┆ 57 │
184+
└──────────┴─────┘
185185
186186
"""
187187
import polars
@@ -245,10 +245,10 @@ def _Array_to_polars_series(self: _arrays.Array): # -> 'polars.Series': # brea
245245
shape: (4,)
246246
Series: '' [struct[2]]
247247
[
248-
{25,"Joseph"}
249-
{31,"Narendra"}
250-
{33,"Angela"}
251-
{57,"Mikhail"}
248+
{"Joseph",25}
249+
{"Narendra",31}
250+
{"Angela",33}
251+
{"Mikhail",57}
252252
]
253253
254254
"""
@@ -307,7 +307,7 @@ def _Array_to_pylist(self: _arrays.Array) -> list[Any]: # pyright: ignore[repor
307307
... {'name': 'Angela', 'age': 33},
308308
... ])
309309
>>> array.to_pylist()
310-
[{'age': 25, 'name': 'Joseph'}, {'age': 31, 'name': 'Narendra'}, {'age': 33, 'name': 'Angela'}]
310+
[{'name': 'Joseph', 'age': 25}, {'name': 'Narendra', 'age': 31}, {'name': 'Angela', 'age': 33}]
311311
312312
"""
313313
return self.to_arrow_table().to_pylist()

‎vortex-python/python/vortex/file.py‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@ def scan(
121121
>>> vxf.scan().read_all().to_arrow_array()
122122
<pyarrow.lib.StructArray object at ...>
123123
-- is_valid: all not null
124-
-- child 0 type: int64
124+
-- child 0 type: string_view
125125
[
126-
25,
127-
31,
126+
"Joseph",
128127
null,
129-
57,
128+
"Angela",
129+
"Mikhail",
130130
null
131131
]
132-
-- child 1 type: string_view
132+
-- child 1 type: int64
133133
[
134-
"Joseph",
134+
25,
135+
31,
135136
null,
136-
"Angela",
137-
"Mikhail",
137+
57,
138138
null
139139
]
140140
@@ -158,13 +158,13 @@ def scan(
158158
>>> vxf.scan(expr=ve.column("age") > 35).read_all().to_arrow_array()
159159
<pyarrow.lib.StructArray object at ...>
160160
-- is_valid: all not null
161-
-- child 0 type: int64
161+
-- child 0 type: string_view
162162
[
163-
57
163+
"Mikhail"
164164
]
165-
-- child 1 type: string_view
165+
-- child 1 type: int64
166166
[
167-
"Mikhail"
167+
57
168168
]
169169
"""
170170
return self._file.scan(projection, expr=expr, limit=limit, indices=indices, batch_size=batch_size)

‎vortex-python/python/vortex/scan.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ def execute(
5050
>>> scan.execute(row_range=(1, 3)).read_all().to_arrow_array()
5151
<pyarrow.lib.StructArray object at ...>
5252
-- is_valid: all not null
53-
-- child 0 type: int64
54-
[
55-
31,
56-
null
57-
]
58-
-- child 1 type: string_view
53+
-- child 0 type: string_view
5954
[
6055
null,
6156
"Angela"
6257
]
58+
-- child 1 type: int64
59+
[
60+
31,
61+
null
62+
]
6363
"""
6464
if row_range is None:
6565
start, stop = None, None

‎vortex-python/src/arrays/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ impl PyArray {
728728
/// ... {'name': 'Mikhail', 'age': 57},
729729
/// ... ])
730730
/// >>> array.scalar_at(2).as_py()
731-
/// {'age': 33, 'name': 'Angela'}
731+
/// {'name': 'Angela', 'age': 33}
732732
/// ```
733733
///
734734
/// Retrieve a missing element from an array of structures:

‎vortex-python/test/test_dataset.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def ds(tmpdir_factory) -> vx.dataset.VortexDataset: # pyright: ignore[reportUnk
3737

3838
def test_schema(ds: pd.Dataset):
3939
assert ds.schema == pa.schema(
40-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.string_view())]
40+
[("index", pa.int64()), ("string", pa.string_view()), ("bool", pa.bool_()), ("float", pa.float64())]
4141
)
4242

4343

4444
def test_scanner_schema(ds: vx.dataset.VortexDataset):
4545
scanner = vx.dataset.VortexScanner(ds)
4646
assert scanner.schema == pa.schema(
47-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.string_view())]
47+
[("index", pa.int64()), ("string", pa.string_view()), ("bool", pa.bool_()), ("float", pa.float64())]
4848
)
4949

5050

@@ -197,13 +197,13 @@ def test_duckdb(ds: vx.dataset.VortexDataset):
197197
tbl = duckdb.execute("select * from ds where string >= '950000' and float < 975.0").arrow().read_all()
198198
assert len(tbl) == 6176
199199
assert tbl.schema == pa.schema(
200-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.utf8())]
200+
[("index", pa.int64()), ("string", pa.utf8()), ("bool", pa.bool_()), ("float", pa.float64())]
201201
)
202202

203203
tbl = duckdb.execute("select * from ds").arrow().read_all()
204204
assert len(tbl) == 1_000_000
205205
assert tbl.schema == pa.schema(
206-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.utf8())]
206+
[("index", pa.int64()), ("string", pa.utf8()), ("bool", pa.bool_()), ("float", pa.float64())]
207207
)
208208
assert tbl.take([0]).to_pylist()[0] == record(0)
209209
assert tbl.take([950_000]).to_pylist()[0] == record(950_000)
@@ -217,7 +217,7 @@ def test_fragment_schema(ds: vx.dataset.VortexDataset):
217217
fragments = ds.get_fragments()
218218
for i, f in enumerate(fragments):
219219
assert f.physical_schema == pa.schema(
220-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.string_view())]
220+
[("index", pa.int64()), ("string", pa.string_view()), ("bool", pa.bool_()), ("float", pa.float64())]
221221
), (f, i)
222222

223223
assert ds.head(1).to_pylist() == [{"index": 0, "string": "0", "bool": True, "float": 0.0}]

‎vortex-python/test/test_file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def vxf(tmpdir_factory) -> vx.VortexFile: # pyright: ignore[reportUnknownParame
3232

3333
def test_dtype(vxf: VortexFile):
3434
assert vxf.dtype.to_arrow_schema() == pa.schema(
35-
[("bool", pa.bool_()), ("float", pa.float64()), ("index", pa.int64()), ("string", pa.string_view())]
35+
[("index", pa.int64()), ("string", pa.string_view()), ("bool", pa.bool_()), ("float", pa.float64())]
3636
)
3737

3838

0 commit comments

Comments
 (0)