Amazon Linux AMI update for curl



Risk Medium
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2023-28319
CVE-2023-28321
CVE-2023-28322
CWE-ID CWE-416
CWE-295
CWE-440
Exploitation vector Network
Public exploit N/A
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

curl
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Use-after-free

EUVDB-ID: #VU76233

Risk: Low

CVSSv4.0: 1.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2023-28319

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to a use-after-free error when checking the SSH sha256 fingerprint. A remote attacker can use the application to connect to a malicious SSH server, trigger a use-after-free error and gain access to potentially sensitive information.

Successful exploitation of the vulnerability requires usage of the the CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 option, and also CURLOPT_VERBOSE or CURLOPT_ERRORBUFFER options have to be set.

Mitigation

Update the affected packages:

aarch64:
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debugsource-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-devel-8.0.1-1.amzn2023.0.1.aarch64

src:
    curl-8.0.1-1.amzn2023.0.1.src

x86_64:
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-8.0.1-1.amzn2023.0.1.x86_64
    curl-debugsource-8.0.1-1.amzn2023.0.1.x86_64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-devel-8.0.1-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

curl: All versions

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-270.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Improper certificate validation

EUVDB-ID: #VU76237

Risk: Medium

CVSSv4.0: 1.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2023-28321

CWE-ID: CWE-295 - Improper Certificate Validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to improper certificate validation when matching wildcards in TLS certificates for IDN names. A remote attacker crate a specially crafted certificate that will be considered trusted by the library.

Successful exploitation of the vulnerability requires that curl is built to use OpenSSL, Schannel or Gskit.

Mitigation

Update the affected packages:

aarch64:
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debugsource-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-devel-8.0.1-1.amzn2023.0.1.aarch64

src:
    curl-8.0.1-1.amzn2023.0.1.src

x86_64:
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-8.0.1-1.amzn2023.0.1.x86_64
    curl-debugsource-8.0.1-1.amzn2023.0.1.x86_64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-devel-8.0.1-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

curl: All versions

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-270.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Expected behavior violation

EUVDB-ID: #VU76238

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2023-28322

CWE-ID: CWE-440 - Expected Behavior Violation

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to a logic error when sending HTTP POST and PUT requests using the same handle. The libcurl can erroneously use the read callback (CURLOPT_READFUNCTION) to ask for data to send, even when the CURLOPT_POSTFIELDS option has been set, if the same handle previously was used to issue a PUT request which used that callback. As a result, the application can misbehave and either send off the wrong data or use memory after free or similar in the second transfer.

Mitigation

Update the affected packages:

aarch64:
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-8.0.1-1.amzn2023.0.1.aarch64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.aarch64
    curl-debugsource-8.0.1-1.amzn2023.0.1.aarch64
    libcurl-devel-8.0.1-1.amzn2023.0.1.aarch64

src:
    curl-8.0.1-1.amzn2023.0.1.src

x86_64:
    libcurl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    curl-8.0.1-1.amzn2023.0.1.x86_64
    curl-debugsource-8.0.1-1.amzn2023.0.1.x86_64
    curl-debuginfo-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    curl-minimal-8.0.1-1.amzn2023.0.1.x86_64
    libcurl-devel-8.0.1-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

curl: All versions

CPE2.3 External links

https://alas.aws.amazon.com/AL2023/ALAS-2023-270.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###