Skip to content
OpenAdvisories
Medium ALAS2023-2023-083 20 CVEs

Moderate: curl security update (Amazon Linux 2023)

Published Feb 17, 2023 · Updated Feb 15, 2024

Summary

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2022-43552: A vulnerability was found in curl. In this issue, curl can be asked to tunnel all protocols virtually it supports through an HTTP proxy. HTTP proxies can deny these tunnel operations using an appropriate HTTP error response code. When getting denied to tunnel the specific SMB or TELNET protocols, curl can use a heap-allocated struct after it has been freed and shut down the code path in its transfer. CVE-2022-43551: A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Using its HSTS support, curl can be instructed to use HTTPS instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. However, the HSTS mechanism could be bypassed if the host name in the given URL first uses IDN characters that get replaced to ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) `.`. Then in a subsequent request, it does not detect the HSTS state and makes a clear text transfer. Because it would store the info IDN encoded but look for it IDN decoded. CVE-2022-42916: A vulnerability was found in curl. The issue occurs because curl's HSTS check can be bypassed to trick it to keep using HTTP. Using its HSTS support, it can instruct curl to use HTTPS directly instead of using an insecure clear-text HTTP step even when HTTP is provided in the URL. This mechanism can be bypassed if the hostname in the given URL uses IDN characters that get replaced with ASCII counterparts as part of the IDN conversion. Like using the character UTF-8 U+3002 (IDEOGRAPHIC FULL STOP) instead of the common ASCII full stop (U+002E) . CVE-2022-42915: A vulnerability was found in curl. The issue occurs if curl is told to use an HTTP proxy for a transfer with a non-HTTP(S) URL. It sets up the connection to the remote server by issuing a `CONNECT` request to the proxy and then tunnels the rest of the protocol through. An HTTP proxy might refuse this request (HTTP proxies often only allow outgoing connections to specific port numbers, like 443 for HTTPS) and instead return a non-200 response code to the client. Due to flaws in the error/cleanup handling, this could trigger a double-free issue in curl if using one of the following schemes in the URL for the transfer: `dict,` `gopher,` `gophers,` `ldap`, `ldaps`, `rtmp`, `rtmps`, `telnet.` CVE-2022-35260: A vulnerability was found in curl. The issue occurs when curl is told to parse a `.netrc` file for credentials. If that file ends in a line with consecutive non-white space letters and no newline, curl could read past the end of the stack-based buffer, and if the read works, it can write a zero byte beyond its boundary. This issue, in most cases, causes a segfault or similar problem. A denial of service can occur if a malicious user can provide a custom netrc file to an application or otherwise affect its contents. CVE-2022-35252: A vulnerability found in curl. This security flaw happens when curl is used to retrieve and parse cookies from an HTTP(S) server, where it accepts cookies using control codes (byte values below 32), and also when cookies that contain such control codes are later sent back to an HTTP(S) server, possibly causing the server to return a 400 response. This issue effectively allows a "sister site" to deny service to siblings and cause a denial of service attack. CVE-2022-32221: A vulnerability was found in curl. The issue occurs when doing HTTP(S) transfers, where curl might erroneously use the read callback () to ask for data to send, even when the option has been set if it previously used the same handle to issue a request which used that callback. This flaw may surprise the application and cause it to misbehave and either send off the wrong data or use memory after free or similar in the subsequent request. CVE-2022-32208: A vulnerability was found in curl. This issue occurs because it mishandles message verification failures when curl does FTP transfers secured by krb5. This flaw makes it possible for a Man-in-the-middle attack to go unnoticed and allows data injection into the client. CVE-2022-32207: A vulnerability was found in curl. This issue occurs because when curl saves cookies, alt-svc, and HSTS data to local files, it makes the operation atomic by finalizing the process with a rename from a temporary name to the final target file name. This flaw leads to unpreserved file permissions, either by mistake or by a malicious actor. CVE-2022-32206: A vulnerability was found in curl. This issue occurs because the number of acceptable "links" in the "decompression chain" was unbounded, allowing a malicious server to insert a virtually unlimited number of compression steps. This flaw leads to a denial of service, either by mistake or by a malicious actor. CVE-2022-32205: A vulnerability was found in curl. This issue occurs because a malicious server can serve excessive amounts of `Set-Cookie:` headers in an HTTP response to curl, which stores all of them. This flaw leads to a denial of service, either by mistake or by a malicious actor. CVE-2022-30115: A vulnerability was found in curl. This issue occurs because when using its HTTP Strict Transport Security(HSTS) support, it can instruct curl to use HTTPS directly instead of using an insecure clear text HTTP step even when HTTP is provided in the URL. This flaw leads to a clear text transmission of sensitive information. CVE-2022-27782: A vulnerability was found in curl. This issue occurs because curl can reuse a previously created connection even when a TLS or SSH-related option is changed that should have prohibited reuse. This flaw leads to an authentication bypass, either by mistake or by a malicious actor. CVE-2022-27781: libcurl provides the `CURLOPT_CERTINFO` option to allow applications torequest details to be returne

Fixed packages 10

ReleasePackageFixed in
Amazon Linux · 2023 curl 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 curl-debuginfo 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 curl-debugsource 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 curl-minimal 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 curl-minimal-debuginfo 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 libcurl 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 libcurl-debuginfo 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 libcurl-devel 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 libcurl-minimal 0:7.87.0-2.amzn2023.0.2
Amazon Linux · 2023 libcurl-minimal-debuginfo 0:7.87.0-2.amzn2023.0.2

Vulnerabilities 20

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-22576.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27774.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27775.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27776.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27779.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27780.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27781.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-27782.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-30115.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32205.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32206.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32207.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32208.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-32221.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-35252.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-35260.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-42915.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-42916.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-43551.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2022-43552.html