Skip to content

Commit eaf0d8e

Browse files
committed
chore(superset): Fix CVE-2024-1135 by upgrading gunicorn from 21.2.0 to 22.0.0
1 parent 699f99f commit eaf0d8e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ All notable changes to this project will be documented in this file.
3838
- ubi-rust-builder: Bump Rust toolchain to 1.81.0 ([#902]).
3939
- ci: Handle release builds in the same build workflows ([#913]).
4040
- hadoop: Bump to `hdfs-utils` 0.4.0 ([#914]).
41+
- superset: Fix `CVE-2024-1135` by upgrading `gunicorn` from 21.2.0 to 22.0.0 ([#XXX]).
4142

4243
### Removed
4344

superset/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ RUN python3 -m venv /stackable/app \
6868
# by searching first under `TZPATH` (which is empty due to the point above) or for the tzdata python package.
6969
# That package is therefore added here (airflow has tzdata in its list of dependencies, but superset does not).
7070
tzdata \
71+
# We bumped this from 21.2.0 to 22.0.0 to fix CVE-2024-1135
72+
# Superset 4.1.0 will contain at least 22.0.0, the bump was done in https://github.com/apache/superset/commit/4f693c6db0dc5c7286a36b8d23e90541943ff13f
73+
# We only want to bump this for the 4.0.x line, as the others already have updated and we don't want to accidentially downgrade the version
74+
&& if [[ "$PRODUCT" =~ ^4\.0\..* ]]; \
75+
then echo "Superset 4.0.x detected, installing gunicorn 22.0.0 to fix CVE-2024-1135" \
76+
&& pip install gunicorn==22.0.0; \
77+
fi \
7178
&& pip install \
7279
--no-cache-dir \
7380
--upgrade \

0 commit comments

Comments
 (0)