QID 354899

Date Published: 2023-04-24

QID 354899: Amazon Linux Security Advisory for curl : ALAS-2023-1729

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-43552) curl: http multi-header compression denial of service (cve-2023-23916) the curl advisory describes this issue as follows: curl supports sftp transfers.
Curl's sftp implementation offers a special feature in the path component of urls: a tilde (~) character as the first path element in the path to denotes a path relative to the user's home directory.
This is supported because of wording in the once proposed to-become rfc draft that was to dictate how sftp urls work. due to a bug, the handling of the tilde in sftp path did however not only replace it when it is used stand-alone as the first path element but also wrongly when used as a mere prefix in the first element. using a path like /~2/foo when accessing a server using the user dan (with home directory /home/dan) would then quite surprisingly access the file /home/dan2/foo. this can be taken advantage of to circumvent filtering or worse. (
( CVE-2023-27534)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1729 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354899

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1729 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1729.html