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
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it #11475
Comments
|
This is curl working as intended. The server's cert is signed by a CA and that CA's certificate is not in the cert bundle curl uses to verify the cert with. |
|
i didn't get that. can you rephrase please. |
|
The entire explanation is what you already wrote in the subject: curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it |
|
when i'm trying to run the curl on my local it's working as expected, but when i'm trying to execute the command inside an image, it's throwing me the following error. |
|
The issue seems to occur for me with curl 7.81.0-1ubuntu1.11 but not curl 7.81.0-1ubuntu1.10. |
|
We're seeing the same issue since the recent curl security update on Ubuntu Focal.
The problem is that the certificate is correct! We are getting this error with a valid wildcard SAN that matches the host. We were able to reproduce the error by
I notice the security update CVE-2023-28321 is related to matching of IDN names. None of the domains in our certificates are IDN names |
|
@peterellisjones yeah that matches up - using a container or VM base image picks up the latest but I had my existing host working because it had not updated. When I updated it explicitly it then failed in the same way. |
|
And the certificate is fine across a whole test suite of various OS VMs, only the Ubuntu 22.04 ones are failing for the exact same steps. In this case it was installing docker but it is the same wildcard certificate issue. The issue seems to be curl=7.81.0-1ubuntu1.11, using the previous version it succeeds. |
|
I can confirm that we are experiencing the same problem since this morning. Any curl call to a domain that is backed by a SAN fails validation. |
|
Pinning to the non-security update version seems to resolve it:
However, not ideal. |
Seeing this as root cause of failures on CircleCI pipelines when executing |
Running with even though the SAN is there on the cert: Downgrading curl: and now the SAN is ok: |
Workaround curl/curl#11475 Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
Workaround curl/curl#11475 Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
Workaround curl/curl#11475 Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
|
We can confirm this as well. Since this morning docker builds with upgraded curl are failing. Same error as above. |
|
So this was Ubuntu patching a security problem with a broken backport of a CVE-2023-28321 patch that broke certificate validation. This bug never existed in code shipped by the curl project. |
|
Cane someone link the commit where the faulty patch was fixed? I can't find it Ubuntus messy infrastructure. |
|
See the link posted by @tedmielczarek-fastly and @jacobwoffenden. |
I ran a docker image to install RUN mkdir github-action-runner && cd github-action-runner && curl -O -L https://github.com/actions/runner/releases/download/v2.305.0/actions-runner-linux-x64-2.305.0.tar.gz && tar xzf ./actions-runner-linux-x64-2.305.0.tar.gz && rm ./actions-runner-linux-x64-2.305.0.tar.gz
I expected the following Docker image to get published with a Linuxx64
curl/libcurl version
[curl -V output]
operating system - ubuntu-latest
The text was updated successfully, but these errors were encountered: