Skip to content

Commit

Permalink
Fixing latest Docker image vulnerabilities
Browse files Browse the repository at this point in the history
AWS Inspector found the following vulnerable packages:

CRITICAL
perl

HIGH
nghttp2, libnghttp2-14
cryptography, libssl3
cryptography
libc6, libc-bin

Upgraded perl, libssl3, nghttp2 packages by upgrading base Ubuntu image to latest of the same LTS version - jammy (22.04).

Cryptography package was fixed by mentioning required version to be installed using conda.

Libc6, Libc-bin can be fixed by using apt-get upgrade but this upgrades all packages which is not recommended as a blanket upgrade fix.
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Dec 16, 2023
1 parent 978a719 commit 07747d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .docker/setup_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source setup/setup.sh
## 10/02 - Mukul
## - Above comments talk about manually updating cryptography to version 40
## - I have upgraded to 41.0.4 as per latest vulnerability fixes.
conda install -c conda-forge cryptography=41.0.4 wheel=0.40.0
conda install -c conda-forge cryptography=41.0.7 wheel=0.40.0

## Remove the old, unused packages to avoid tripping up the checker
rm -rf /root/miniconda-23.1.0/pkgs/cryptography-38.0.4-py39h9ce1e76_0
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# python 3
FROM ubuntu:jammy-20231004
FROM ubuntu:jammy-20231128

MAINTAINER K. Shankari ([email protected])

Expand Down

0 comments on commit 07747d0

Please sign in to comment.