Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New medium priority openssl vulnerability: CVE-2022-2097 #261

Open
post-svejk opened this issue Jul 6, 2022 · 16 comments
Open

New medium priority openssl vulnerability: CVE-2022-2097 #261

post-svejk opened this issue Jul 6, 2022 · 16 comments

Comments

@post-svejk
Copy link

post-svejk commented Jul 6, 2022

There is a new vulnerability being reported by azure/container-scan and trivy on our builds: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2097
Also flagged by Snyk at: https://snyk.io/test/docker/alpine:3.16.0

I cannot find any workarounds. Looks like the alpine package for openssl needs to be updated with fixed version of openssl first.

@MarekKosinski
Copy link

MarekKosinski commented Jul 15, 2022

Is there any update on this issue?

@kyberorg
Copy link

kyberorg commented Jul 16, 2022

@MarekKosinski updating affected packages in Dockerfile may help

FROM alpine
RUN apk add --update-cache \
        libcrypto1.1=1.1.1q-r0 \
        libssl1.1=1.1.1q-r0 && \
    rm -rf /var/cache/apk/*

@erikgb
Copy link

erikgb commented Jul 17, 2022

FWIW, there is a new "edge" tag (20220715) available without this vuln. I tried the package upgrade suggested in #261 (comment), but couldn't make it work - because of package conflicts...

@kyberorg
Copy link

@erikgb actually switching from https to http repositories helps somehow

RUN sed -i 's,https,http,g' /etc/apk/repositories && \
    apk add --update-cache \
        libcrypto1.1=1.1.1q-r0 \
        libssl1.1=1.1.1q-r0 && \
    rm -rf /var/cache/apk/*

@erikgb
Copy link

erikgb commented Jul 17, 2022

@kyberorg But doesn't that change make you vulnerable for MITM attacks, at least theoretically? Thanks for the info anyway!

@famod
Copy link

famod commented Jul 18, 2022

FWIW, this might have been "medium" at some point but is now being reported as "high".

@SnazzyBootMan
Copy link

SnazzyBootMan commented Jul 18, 2022

This does work but it is using the edge repository:

apk --no-cache add libcrypto1.1=1.1.1q-r0 libssl1.1=1.1.1q-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community

@syukronarie
Copy link

@MarekKosinski updating affected packages in Dockerfile may help

FROM alpine
RUN apk add --update-cache \
        libcrypto1.1=1.1.1q-r0 \
        libssl1.1=1.1.1q-r0 && \
    rm -rf /var/cache/apk/*

Hi @MarekKosinski, Your suggestion fix my issue. Thanks.

@keithmattix
Copy link

The OS patch just dropped; the new image should be imminent

@syukronarie
Copy link

The OS patch just dropped; the new image should be imminent

yes, the image should provide this latest version..

@keithmattix
Copy link

3.16.1 is available on DockerHub

@sshuklao
Copy link

@keithmattix still seeing the same issue in 3.16.1.

The scan results show that 1 ISSUE was found for the image.

Vulnerable Packages Found
=========================

CVE-2022-30065

   Policy Status
   Active

   Summary
   A use-after-free in Busybox 1.35-x's awk applet leads to denial of service and possibly code execution when processing a crafted awk pattern in the copyvar function.

   Vendor Security Notice IDs   Official Notice
   ALPINE-CVE-2022-30065

   Affected Packages   Policy Status   How to Resolve                        Security Notice
   busybox             Active          Upgrade busybox to >= 1.35.0-r17      ALPINE-CVE-2022-30065
   ssl_client          Active          Upgrade ssl_client to >= 1.35.0-r17   ALPINE-CVE-2022-30065

@kyberorg
Copy link

@sshuklao I can confirm. Trivy gives same results.
Edge and 20220715 are shipping version 1.35.0-r18 and have 0 vulnerabilities.

@keithmattix
Copy link

@sshuklao That's a separate vuln. Compare the 3.16.0 snyk report with the 3.16.1 snyk report

@eli-darkly
Copy link

@sshuklao @keithmattix The one about awk, CVE-2022-30065, has an open issue here: #264

But it is still true that the 3.16.1 release notes are claiming to fix that vulnerability, and it doesn't seem to be fixed.

@keithmattix
Copy link

Ah, yep; I didn't check the CVE link. Looks like 3.16.1 is still affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants