Skip to content

Commit 09c92d4

Browse files
Fix python-dotenv vulnerability in ACFT environments (#5014)
Upgrade python-dotenv in the /opt/conda Python 3.13 environment for the affected curated images so Qualys QID 5011346 is remediated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0a1940c commit 09c92d4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

  • assets/training
    • finetune_acft_hf_nlp/environments/acpt-draft/context
    • finetune_acft_image/environments/acft_image_medimageinsight_adapter_finetune/context

assets/training/finetune_acft_hf_nlp/environments/acpt-draft/context/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN pip install xgrammar==0.1.32
2222
# GHSA-69w3-r845-3855 (CVE-2026-1839): arbitrary code execution in Trainer class;
2323
# patched only in transformers>=5.0.0rc3. Upgrading to latest stable 5.x.
2424
RUN pip install transformers==5.5.4
25+
# python-dotenv in /opt/conda Python 3.13 ships as vulnerable 1.2.1 in the base image.
26+
RUN /opt/conda/bin/python3.13 -m pip install --no-cache-dir --upgrade 'python-dotenv>=1.2.2'
2527
# clean conda and pip caches
2628
RUN rm -rf ~/.cache/pip
2729
COPY loss /opt/conda/envs/ptca/lib/python3.10/site-packages/specforge/core/loss.py

assets/training/finetune_acft_image/environments/acft_image_medimageinsight_adapter_finetune/context/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ RUN pip install -r requirements.txt --no-cache-dir
1717
# python-dotenv: mlflow → mlflow-skinny → python-dotenv<2,>=0.19.0;
1818
# mlflow 3.11.1 (latest as of 2026-05-04) allows >=1.2.2 but pip may resolve older (GHSA-mf9w-mj56-hr94)
1919
RUN pip install --no-cache-dir --upgrade 'pyasn1>=0.6.3' 'Mako>=1.3.11' 'python-dotenv>=1.2.2'
20+
# python-dotenv in /opt/conda Python 3.13 also ships as vulnerable 1.2.1 in the base image.
21+
RUN /opt/conda/bin/python3.13 -m pip install --no-cache-dir --upgrade 'python-dotenv>=1.2.2'
2022

2123
RUN conda clean -a -y && rm -rf /opt/miniconda/pkgs/

0 commit comments

Comments
 (0)