File tree Expand file tree Collapse file tree 4 files changed +20
-12
lines changed
Expand file tree Collapse file tree 4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 11awscli == 1.35.7
22jsonschema == 4.21.1
33pytest == 8.3.3
4- protobuf == 6.31.1
4+ protobuf == 6.33.5
55pyyaml == 6.0.1
66requests == 2.32.4
77numpy == 2.1.2
88boto3 == 1.35.41
9+ urllib3 == 2.6.3
10+ pyasn1 == 0.6.2
11+ certifi
12+ charset-normalizer
13+ idna
Original file line number Diff line number Diff line change @@ -24,11 +24,10 @@ RUN rm -f /etc/dnf/vars/releasever && \
2424RUN dnf -y update glib2-2.82.2-769.amzn2023 && \
2525 dnf clean all
2626
27- # Fix Python package CVEs - completely remove all versions and clean install
28- RUN pip3 uninstall -y urllib3 pyasn1 requests || true
29- RUN rm -rf /var/lang/lib/python*/site-packages/urllib3* /var/lang/lib/python*/site-packages/pyasn1* || true
30- RUN rm -rf ${LAMBDA_TASK_ROOT}/urllib3* ${LAMBDA_TASK_ROOT}/pyasn1* ${LAMBDA_TASK_ROOT}/requests* || true
31- RUN pip3 install urllib3==2.6.3 pyasn1==0.6.2 requests==2.32.4 certifi charset-normalizer idna --target "${LAMBDA_TASK_ROOT}" --no-cache-dir
27+ # Fix Python package CVEs - completely remove all versions and clean install from requirements.txt
28+ RUN pip3 uninstall -y urllib3 pyasn1 requests protobuf || true
29+ RUN rm -rf /var/lang/lib/python*/site-packages/urllib3* /var/lang/lib/python*/site-packages/pyasn1* /var/lang/lib/python*/site-packages/protobuf* || true
30+ RUN rm -rf ${LAMBDA_TASK_ROOT}/urllib3* ${LAMBDA_TASK_ROOT}/pyasn1* ${LAMBDA_TASK_ROOT}/requests* ${LAMBDA_TASK_ROOT}/protobuf* || true
3231
3332# Fix CVE-2025-61726 - Update AWS Lambda RIE to version with Go stdlib 1.25.6
3433RUN curl -Lo /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie && \
Original file line number Diff line number Diff line change @@ -26,11 +26,10 @@ RUN rm -f /etc/dnf/vars/releasever && \
2626RUN dnf -y update glib2-2.82.2-769.amzn2023 && \
2727 dnf clean all
2828
29- # Fix Python package CVEs - completely remove all versions and clean install
30- RUN pip3 uninstall -y urllib3 pyasn1 requests || true
31- RUN rm -rf /var/lang/lib/python*/site-packages/urllib3* /var/lang/lib/python*/site-packages/pyasn1* || true
32- RUN rm -rf ${LAMBDA_TASK_ROOT}/urllib3* ${LAMBDA_TASK_ROOT}/pyasn1* ${LAMBDA_TASK_ROOT}/requests* || true
33- RUN pip3 install urllib3==2.6.3 pyasn1==0.6.2 requests==2.32.4 certifi charset-normalizer idna --target "${LAMBDA_TASK_ROOT}" --no-cache-dir
29+ # Fix Python package CVEs - completely remove all versions and clean install from requirements.txt
30+ RUN pip3 uninstall -y urllib3 pyasn1 requests protobuf || true
31+ RUN rm -rf /var/lang/lib/python*/site-packages/urllib3* /var/lang/lib/python*/site-packages/pyasn1* /var/lang/lib/python*/site-packages/protobuf* || true
32+ RUN rm -rf ${LAMBDA_TASK_ROOT}/urllib3* ${LAMBDA_TASK_ROOT}/pyasn1* ${LAMBDA_TASK_ROOT}/requests* ${LAMBDA_TASK_ROOT}/protobuf* || true
3433
3534# Fix CVE-2025-61726 - Update AWS Lambda RIE to version with Go stdlib 1.25.6
3635RUN curl -Lo /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie && \
Original file line number Diff line number Diff line change 11awscli == 1.35.7
22jsonschema == 4.23.0
33pytest == 8.3.3
4- protobuf == 6.31.1
4+ protobuf == 6.33.5
55pyyaml == 6.0.2
66requests == 2.32.3
77numpy == 2.1.2
88boto3 == 1.35.41
99coverage == 7.6.3
10+ urllib3 == 2.6.3
11+ pyasn1 == 0.6.2
12+ certifi
13+ charset-normalizer
14+ idna
You can’t perform that action at this time.
0 commit comments