摘要:
curl security update
安全等级: High
公告ID: KylinSec-SA-2023-1739
发布日期: 2023年10月23日
关联CVE: CVE-2023-38545 CVE-2023-38546
cURL is a computer software project providing a library (libcurl) and command-line tool (curl) for transferring data using various protocols.
Security Fix(es):
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.
(CVE-2023-38545)
This flaw allows an attacker to insert cookies at will into a running program
using libcurl, if the specific series of conditions are met.
libcurl performs transfers. In its API, an application creates "easy handles"
that are the individual handles for single transfers.
libcurl provides a function call that duplicates en easy handle called
[curl_easy_duphandle](https://curl.se/libcurl/c/curl_easy_duphandle.html).
If a transfer has cookies enabled when the handle is duplicated, the
cookie-enable state is also cloned - but without cloning the actual
cookies. If the source handle did not read any cookies from a specific file on
disk, the cloned version of the handle would instead store the file name as
`none` (using the four ASCII letters, no quotes).
Subsequent use of the cloned handle that does not explicitly set a source to
load cookies from would then inadvertently load cookies from a file named
`none` - if such a file exists and is readable in the current directory of the
program using libcurl. And if using the correct file format of course.
(CVE-2023-38546)
cve名称 | 产品 | 组件 | 是否受影响 |
---|---|---|---|
CVE-2023-38545 | KY3.4-4A | curl | Fixed |
CVE-2023-38545 | KY3.4-5A | curl | Fixed |
CVE-2023-38545 | KY3.5.1 | curl | Fixed |
CVE-2023-38545 | KY3.5.2 | curl | Fixed |
CVE-2023-38546 | KY3.4-4A | curl | Fixed |
CVE-2023-38546 | KY3.4-5A | curl | Fixed |
CVE-2023-38546 | KY3.5.1 | curl | Fixed |
CVE-2023-38546 | KY3.5.2 | curl | Fixed |
软件名称 | 架构 | 版本号 |
---|---|---|
curl-help | noarch | 7.79.1-24.kb1.ky3_5 |
libcurl-devel | x86_64 | 7.79.1-24.kb1.ky3_5 |
curl | x86_64 | 7.79.1-24.kb1.ky3_5 |
libcurl | x86_64 | 7.79.1-24.kb1.ky3_5 |
curl | aarch64 | 7.79.1-24.kb1.ky3_5 |
libcurl-devel | aarch64 | 7.79.1-24.kb1.ky3_5 |
libcurl | aarch64 | 7.79.1-24.kb1.ky3_5 |
软件名称 | 架构 | 版本号 |
---|---|---|
curl-help | noarch | 7.71.1-31.kb1.ky3_4 |
curl | x86_64 | 7.71.1-31.kb1.ky3_4 |
libcurl | x86_64 | 7.71.1-31.kb1.ky3_4 |
libcurl-devel | x86_64 | 7.71.1-31.kb1.ky3_4 |
libcurl | aarch64 | 7.71.1-31.kb1.ky3_4 |
libcurl-devel | aarch64 | 7.71.1-31.kb1.ky3_4 |
curl | aarch64 | 7.71.1-31.kb1.ky3_4 |
软件名称 | 架构 | 版本号 |
---|---|---|
curl-help | noarch | 7.71.1-31.kb1.ky3_4 |
curl | x86_64 | 7.71.1-31.kb1.ky3_4 |
libcurl | x86_64 | 7.71.1-31.kb1.ky3_4 |
libcurl-devel | x86_64 | 7.71.1-31.kb1.ky3_4 |
curl | aarch64 | 7.71.1-31.kb1.ky3_4 |
libcurl | aarch64 | 7.71.1-31.kb1.ky3_4 |
libcurl-devel | aarch64 | 7.71.1-31.kb1.ky3_4 |
软件名称 | 架构 | 版本号 |
---|---|---|
curl-help | noarch | 7.79.1-25.ky3_5 |
libcurl-devel | x86_64 | 7.79.1-25.ky3_5 |
curl | x86_64 | 7.79.1-25.ky3_5 |
libcurl | x86_64 | 7.79.1-25.ky3_5 |
libcurl-devel | aarch64 | 7.79.1-25.ky3_5 |
libcurl | aarch64 | 7.79.1-25.ky3_5 |
curl | aarch64 | 7.79.1-25.ky3_5 |
方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm
方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名