Skip to content

Commit b005fba

Browse files
committed
patching cves
1 parent c3f25e5 commit b005fba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ ENV PYTHONPATH=$PYTHONPATH:.
3131
COPY src /app/src
3232
COPY --from=builder /app/venv /venv
3333

34+
# --- Fix CVE-2025-8869: Upgrade pip in system Python and clean up ---
35+
RUN python -m pip uninstall -y pip && \
36+
rm -rf /usr/local/lib/python3.12/site-packages/pip* && \
37+
python -m ensurepip --upgrade && \
38+
python -m pip install --no-cache-dir pip==25.3 && \
39+
rm -rf /usr/local/lib/python3.12/ensurepip/_bundled/*
40+
3441
ENTRYPOINT ["python", "/app/src/disk_info.py"]

0 commit comments

Comments
 (0)