docker-nginx icon indicating copy to clipboard operation
docker-nginx copied to clipboard

CVE-2022-27404, CVE-2022-27405, CVE-2022-27406

Open sagar18m opened this issue 2 years ago • 15 comments

Resource Resource Type Installed Version Vulnerability Name Publish Date NVD CVSS v2 Severity NVD CVSS v2 Score NVD CVSS v2 Vectors Solution
freetype package 2.11.1-r0 CVE-2022-27404 4/22/2022 high 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P Upgrade package freetype to version 2022-03-07 or above.
freetype package 2.11.1-r0 CVE-2022-27405 4/22/2022 medium 5 AV:N/AC:L/Au:N/C:N/I:N/A:P Upgrade package freetype to version 2022-03-17 or above.
freetype package 2.11.1-r0 CVE-2022-27406 4/22/2022 medium 5 AV:N/AC:L/Au:N/C:N/I:N/A:P Upgrade package freetype to version 2022-03-19 or above.

sagar18m avatar May 05 '22 21:05 sagar18m

As seen on the Debian security tracker pages, the fix is only available in bookworm (currently aka sid or unstable). All other Debian releases do not have the update. And, from the Notes, it looks like the Debian security team has chosen not to fix it for them.

https://security-tracker.debian.org/tracker/CVE-2022-27404 and https://security-tracker.debian.org/tracker/CVE-2022-27405 and https://security-tracker.debian.org/tracker/CVE-2022-27406

[bullseye] - freetype <no-dsa> (Minor issue)
[buster] - freetype <no-dsa> (Minor issue)
[stretch] - freetype <no-dsa> (Minor issue)

yosifkit avatar May 05 '22 23:05 yosifkit

How I can upgrade directly freetype to 2022-03-07?

dimanchezzz avatar May 06 '22 07:05 dimanchezzz

hi @dimanchezzz, we'll need to wait until freetype is updated in the Linux distributions nginx images use, namely Alpine 3.15 and Debian 11.

thresheek avatar May 06 '22 07:05 thresheek

Thanks, How I can following by updates in the Linux distributions nginx images or mb i can drop freetype from image ? I tried it, but not working( RUN apk del freetype

dimanchezzz avatar May 06 '22 07:05 dimanchezzz

The links for tracking CVE fixes in Debian were provided in https://github.com/nginxinc/docker-nginx/issues/657#issuecomment-1119147670, and for Alpine you'd have to check https://git.alpinelinux.org/aports/log/main/freetype?h=3.15-stable

You should be able to remove freetype and the image filter module with the following command: apk del freetype nginx-module-image-filter.

thresheek avatar May 06 '22 08:05 thresheek

A fix for 2022-27404 was submitted to the Alpine mainline.

https://gitlab.alpinelinux.org/alpine/aports/-/commit/08c9eeb1e3aee1adc8c3407f29630073aef5c5e3 https://gitlab.alpinelinux.org/alpine/aports/-/commit/a11d8db7bb9baefb69a268bba661728ece1f1caa

cameronwaterman avatar May 06 '22 18:05 cameronwaterman

Hello, when can we expect to have a new nginx image with the fix for 2022-27404? Thanks

istvandesign avatar May 10 '22 10:05 istvandesign

Hi @istvandesign there is no strict date - for Debian it's likely never, and for Alpine-based images, whenever alpine 3.15.5 is released.

thresheek avatar May 10 '22 10:05 thresheek

Hi @istvandesign there is no strict date - for Debian it's likely never, and for Alpine-based images, whenever alpine 3.15.5 is released.

Thanks, the hotfix you mentioned, RUN apk del freetype nginx-module-image-filter will also work in alpine or only in debian based images ?

istvandesign avatar May 10 '22 11:05 istvandesign

It would be RUN apt remove -y libfreetype6 for Debian

thresheek avatar May 10 '22 12:05 thresheek

I would like to know how the treatment by official. When does the alpine image change to use 3.15 in the stable-alpine and 1.20-alpine? Or When would RUN apk del freetype nginx-module-image-filter add officially?

sahya avatar May 12 '22 05:05 sahya

We plan to have stable tags updated with Alpine 3.15 (or 3.16 if it's out at that time) somewhere in mid-June. No hard ETA though yet.

thresheek avatar May 12 '22 06:05 thresheek

CVE-2022-27404 is fixed now in alpine-based images. Other CVEs arent, and all of them are not fixed for Debian-based images.

thresheek avatar May 18 '22 07:05 thresheek

I've taken this update applied it to our application. The scan is all clear now. thank you

asos-bryanharveysmith avatar May 18 '22 12:05 asos-bryanharveysmith

CVE-2022-27405 and CVE-2022-27406 are now fixed in Alpine-based images. No changes for Debian.

thresheek avatar Jul 19 '22 09:07 thresheek

CVE-2022-27404, CVE-2022-27405, CVE-2022-27406 are now fixed in Debian in freetype6 2.10.4+dfsg-1+deb11u1, which is what installed in all Debian images now.

thresheek avatar Oct 11 '22 08:10 thresheek