跳转到帖子

Amazon Linux 2023: CVE-2023-38545: Important priority package update for curl

recommended_posts

发布于
  • Members

Amazon Linux 2023: CVE-2023-38545: Important priority package update for curl

Severity
8
CVSS
(AV:N/AC:H/Au:N/C:C/I:C/A:C)
Published
10/11/2023
Created
02/14/2025
Added
02/14/2025
Modified
02/14/2025

Description

This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the host name to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that host name can be is 255 bytes. If the host name is detected to be longer, curl switches to local name resolving and instead passes on the resolved address only. Due to this bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long host name to the target buffer instead of copying just the resolved address there. The target buffer being a heap based buffer, and the host name coming from the URL that curl has been told to operate with. A heap-based buffer overflow flaw was found in the SOCKS5 proxy handshake in the Curl package. If Curl is unable to resolve the address itself, it passes the hostname to the SOCKS5 proxy. However, the maximum length of the hostname that can be passed is 255 bytes. If the hostname is longer, then Curl switches to the local name resolving and passes the resolved address only to the proxy. The local variable that instructs Curl to "let the host resolve the name" could obtain the wrong value during a slow SOCKS5 handshake, resulting in the too-long hostname being copied to the target buffer instead of the resolved address, which was not the intended behavior.

Solution(s)

  • amazon-linux-2023-upgrade-curl
  • amazon-linux-2023-upgrade-curl-debuginfo
  • amazon-linux-2023-upgrade-curl-debugsource
  • amazon-linux-2023-upgrade-curl-minimal
  • amazon-linux-2023-upgrade-curl-minimal-debuginfo
  • amazon-linux-2023-upgrade-libcurl
  • amazon-linux-2023-upgrade-libcurl-debuginfo
  • amazon-linux-2023-upgrade-libcurl-devel
  • amazon-linux-2023-upgrade-libcurl-minimal
  • amazon-linux-2023-upgrade-libcurl-minimal-debuginfo

References

  • https://attackerkb.com/topics/cve-2023-38545
  • CVE - 2023-38545
  • https://alas.aws.amazon.com/AL2023/ALAS-2023-377.html
  • 查看数 702
  • 已创建
  • 最后回复

参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。
注意:你的帖子需要版主批准后才能看到。

游客
回帖…