airflow-3/GHSA-79v4-65xg-pq4g/GHSA-h4gh-qq45-vh27 fix #70239
Closed
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.
Summary
Fixes GHSA-79v4-65xg-pq4g and GHSA-h4gh-qq45-vh27 in airflow-3 by upgrading Python from 3.12 to 3.13.
Issue
Both vulnerabilities affect the cryptography package:
Evidence
Current Constraint Mismatch (Python 3.12)
Airflow pulls upstream constraints which vary by Python version:
Python 3.12 constraints: cryptography==42.0.8 (vulnerable)
Source
Fixed Constraint Available (Python 3.13)
Python 3.13 constraints: cryptography==46.0.0 (contains fix)
Source
Upstream Python 3.13 Support
Airflow v3.1.0+ officially supports Python 3.13 (released with Python 3.9 EOL)
Source
Upstream Cryptography Dependency
Airflow sets only a lower bound:
cryptography>=41.0.0Source: https://github.com/search?q=repo%3Aapache%2Fairflow+%22cryptography&type=code
This allows the constraints file to specify the actual version used per Python version.
Changes