GoogleContainerTools / distroless

🥑 Language focused docker images, minus the operating system.
Apache License 2.0
19.03k stars 1.16k forks source link

Snyk scan reports `CVE-2024-5535` on `gcr.io/distroless/nodejs18-debian12:nonroot` #1711

Closed pete-woods closed 21 hours ago

pete-woods commented 2 days ago

Please describe the image you encountered this with and a link to the debian security tracker https://security-tracker.debian.org/tracker/CVE-2024-5535

I don't really understand why this is happening, as Debian seems to have released a fix for bookworm. However the tracker does show an outdated version in the security repo?

It kinda looks like the image is picking up the older openssl release from the security repository.

Screenshot 2024-11-11 at 11 53 09

This is the output from our security scanner (Snyk), which seems to indicate the distroless image contains the older release:

+--------------+-----------+------------------+--------------------+----------+-----------------------------------------------------------+------------------+------------+------------------+-----------+
| PACKAGE NAME | NAMESPACE | VERSION          | VULNERABILITY NAME | SEVERITY | LINK                                                      | FIX VERSION      | STATUS     | IN GRACE PERIOD? | DAYS LEFT |
+--------------+-----------+------------------+--------------------+----------+-----------------------------------------------------------+------------------+------------+------------------+-----------+
| openssl      | debian:12 | 3.0.14-1~deb12u2 | CVE-2024-5535      | Critical | https://security-tracker.debian.org/tracker/CVE-2024-5535 | 3.0.15-1~deb12u1 | VULNERABLE | false            |         0 |
| openssl      | debian:12 | 3.0.14-1~deb12u2 | CVE-2024-9143      | Medium   | https://security-tracker.debian.org/tracker/CVE-2024-9143 | 3.0.15-1~deb12u1 | VULNERABLE | false            |         0 |
+--------------+-----------+------------------+--------------------+----------+-----------------------------------------------------------+------------------+------------+------------------+-----------+
pete-woods commented 2 days ago

Hmm - this bot PR for the base seems relevant https://github.com/GoogleContainerTools/distroless/pull/1710

It looks to be bumping openssl to 3.0.15

Kalovelo commented 2 days ago

Got on this as well, wondering if there's a workaround to install the latest version while waiting for the merged PR

pete-woods commented 2 days ago

Based on a quick snoop around, it looks like loosebazooka is the one person merging machine keeping on top of the PRs from the bot.

pete-woods commented 21 hours ago

1710 is merged now!