[FLINK-40599] Allow pyarrow up to 25.x (CVE-2026-25087) - #29134
Merged
Conversation
florianvazelle
marked this pull request as draft
September 8, 2026 16:31
Collaborator
florianvazelle
marked this pull request as ready for review
September 9, 2026 06:34
dianfu
approved these changes
Sep 9, 2026
dianfu
left a comment
Contributor
There was a problem hiding this comment.
@florianvazelle Thanks for the PR. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Raise PyFlink's
pyarrowupper bound from<21.0.0to<26.0.0so Python 3.10+ environments can install pyarrow 25.x.That also unblocks installing Arrow C++ 23.0.1+, which is the fix for CVE-2026-25087 (use-after-free in Arrow C++ 15.0.0–23.0.0 when reading an IPC file with pre-buffering). The previous
<21cap made a patched pyarrow uninstallable. This change does not raise the lower bound, so older pyarrow versions can still be resolved.Arrow Java is left at
19.0.0.Python 3.9 remains supported by Flink. pyarrow 22 dropped 3.9 wheels, so pip on 3.9 will keep resolving a 21.x wheel inside the new range.
Brief change log
pyarrowfrom>=5.0.0,<21.0.0to>=5.0.0,<26.0.0inflink-python/setup.pyandflink-python/pyproject.tomlflink-python/pom.xmlthat Arrow Java is not version-aligned with pyarrow (still19.0.0)Verifying this change
This change is already covered by existing tests, such as:
pyflink.table.tests.test_types.ArrowTypeConversionTests(Arrow ↔ Flink type mapping)test_pandas_udaf, vectorized operations)Table.to_pandas/ Arrow serializer tests (test_table_environment_api)pyflink.dataframe.tests.test_convert)CI should install pyarrow 25.x on Python 3.10+ and a 21.x wheel on Python 3.9.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation