Skip to content

Commit

Permalink
Get rid of pyarrow-hotfix for CVE-2023-47248 (#36697)
Browse files Browse the repository at this point in the history
The #35650 introduced a hotfix for Pyarrow CVE-2023-47248. So far
we have been blocked from removing it by Apache Beam that limited
Airflow from bumping pyarrow to a version that was not vulnerable.

This is now possible since Apache Beam relesed 2.53.0 version on
4th of January 2023 that allows to use non-vulnerable pyarrow.

We are now bumping both Pyarrow and Beam minimum versions to
reflect that and remove pyarrow hotfix.
  • Loading branch information
potiuk committed Jan 9, 2024
1 parent cb1182e commit d105c71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion airflow/providers/apache/beam/provider.yaml
Expand Up @@ -52,7 +52,9 @@ versions:

dependencies:
- apache-airflow>=2.6.0
- apache-beam>=2.47.0
# Apache Beam > 2.53.0 and pyarrow > 14.0.1 fix https://nvd.nist.gov/vuln/detail/CVE-2023-47248.
- apache-beam>=2.53.0
- pyarrow>=14.0.1

integrations:
- integration-name: Apache Beam
Expand Down
3 changes: 2 additions & 1 deletion generated/provider_dependencies.json
Expand Up @@ -56,7 +56,8 @@
"apache.beam": {
"deps": [
"apache-airflow>=2.6.0",
"apache-beam>=2.47.0"
"apache-beam>=2.53.0",
"pyarrow>=14.0.1"
],
"cross-providers-deps": [
"google"
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Expand Up @@ -351,10 +351,6 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve
otel = ["opentelemetry-exporter-prometheus"]
pandas = [
"pandas>=0.17.1",
# Use pyarrow-hotfix to fix https://nvd.nist.gov/vuln/detail/CVE-2023-47248.
# We should remove it once Apache Beam frees us to upgrade to pyarrow 14.0.1
"pyarrow-hotfix",
"pyarrow>=9.0.0",
]
password = [
"bcrypt>=2.0.0",
Expand Down

0 comments on commit d105c71

Please sign in to comment.