Skip to content

Commit da00f50

Browse files
aarthy-dkclaude
andcommitted
fix(security): patch HIGH/CRITICAL image CVEs
- pyarrow 21.0.0 -> 23.0.1 (CVE-2026-25087, HIGH) - PyJWT 2.12.0 -> 2.13.0 (CVE-2026-48526 HIGH + 3 MED + 1 LOW) - cryptography 46.0.6 -> 46.0.7 (CVE-2026-39892, MED) - base image: remove unused system Arrow packages (libarrow, apache-arrow-dev). pyarrow ships a self-contained musllinux wheel, so the apk Arrow libs were dead weight pulling in grpc (CVE-2026-33186, CRITICAL) and protobuf (CVE-2026-0994, HIGH) as runtime deps. Removing them also drops ~110 MB. - pip 26.0 -> 26.1.2 (3 MED) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e5ed1fd commit da00f50

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

deploy/testgen-base.dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ RUN apk update && apk upgrade && apk add --no-cache \
2727
openblas=0.3.30-r2 \
2828
openblas-dev=0.3.30-r2 \
2929
unixodbc=2.3.14-r0 \
30-
unixodbc-dev=2.3.14-r0 \
31-
libarrow=21.0.0-r4 \
32-
apache-arrow-dev=21.0.0-r4
30+
unixodbc-dev=2.3.14-r0
3331

3432
COPY --chmod=775 ./deploy/install_linuxodbc.sh /tmp/dk/install_linuxodbc.sh
3533
RUN /tmp/dk/install_linuxodbc.sh
@@ -39,7 +37,7 @@ COPY ./pyproject.toml /tmp/dk/pyproject.toml
3937
RUN mkdir /dk
4038

4139
# Upgrading pip for security
42-
RUN python3 -m pip install --no-cache-dir --upgrade pip==26.0
40+
RUN python3 -m pip install --no-cache-dir --upgrade pip==26.1.2
4341

4442
# hdbcli only ships manylinux wheels (no musl). pip 26+ correctly rejects these on Alpine.
4543
# We download the wheel for the correct arch, then extract it directly into site-packages
@@ -73,8 +71,7 @@ RUN apk del \
7371
openssl \
7472
linux-headers \
7573
openblas-dev \
76-
unixodbc-dev \
77-
apache-arrow-dev
74+
unixodbc-dev
7875

7976
# Remove interactive ODBC tools — not needed at runtime, and iusql triggers
8077
# false-positive secret detection in security scanners (SECRET-3010)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ dependencies = [
6161
"xlsxwriter==3.2.0",
6262
"psutil==5.9.8",
6363
"concurrent_log_handler==0.9.25",
64-
"cryptography==46.0.6",
64+
"cryptography==46.0.7",
6565
"validators==0.33.0",
6666
"reportlab==4.2.2",
6767
"cron-converter==1.2.1",
@@ -72,7 +72,7 @@ dependencies = [
7272
"holidays~=0.89",
7373

7474
# Pinned to match the manually compiled libs or for security
75-
"pyarrow==21.0.0",
75+
"pyarrow==23.0.1",
7676
"matplotlib==3.9.2",
7777
"scipy==1.14.1",
7878
"jinja2==3.1.6",
@@ -82,7 +82,7 @@ dependencies = [
8282
# MCP server
8383
"mcp[cli]==1.26.0",
8484
"uvicorn==0.41.0",
85-
"PyJWT==2.12.0",
85+
"PyJWT==2.13.0",
8686
"bcrypt==5.0.0",
8787

8888
# API & OAuth server

0 commit comments

Comments
 (0)