Alpine: multiple curl packages, libcurl: security update to 7.50.3-r1 (deprecated)

critical Tenable Cloud Security Plugin ID 400997

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- The URL percent-encoding decode function in libcurl before 7.51.0 is called `curl_easy_unescape`.
Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB,
it would return that new length in a signed 32 bit integer variable, thus the length would get either just
truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its
heap based buffer. (CVE-2016-8622)

- A flaw was found in curl before version 7.51. If cookie state is written into a cookie jar file that is
later read back and used for subsequent requests, a malicious HTTP server can inject new cookies for
arbitrary domains into said cookie jar. (CVE-2016-8615)

- A flaw was found in curl before version 7.51.0 When re-using a connection, curl was doing case insensitive
comparisons of user name and password with the existing connections. This means that if an unused
connection with proper credentials exists for a protocol that has connection-scoped credentials, an
attacker can cause that connection to be reused if s/he knows the case-insensitive version of the correct
password. (CVE-2016-8616)

- The base64 encode function in curl before version 7.51.0 is prone to a buffer being under allocated in
32bit systems if it receives at least 1Gb as input via `CURLOPT_USERNAME`. (CVE-2016-8617)

- The libcurl API function called `curl_maprintf()` before version 7.51.0 can be tricked into doing a
double-free due to an unsafe `size_t` multiplication, on systems using 32 bit `size_t` variables.
(CVE-2016-8618)

See Also

https://git.alpinelinux.org/aports/commit/?id=419140349e89fbc7c93b3f9642284187acee2966

https://git.alpinelinux.org/aports/commit/?id=f7051d630496b942b9629f42a2e8a3a70d791087

Plugin Details

Severity: Critical

ID: 400997

Version: Revision 1.24

Type: Local

Published: 8/16/2023

Updated: 2/12/2024

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2016-8622

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 11/4/2016

Vulnerability Publication Date: 11/2/2016

Reference Information

CVE: CVE-2016-8615, CVE-2016-8616, CVE-2016-8617, CVE-2016-8618, CVE-2016-8619, CVE-2016-8620, CVE-2016-8621, CVE-2016-8622, CVE-2016-8623, CVE-2016-8624, CVE-2016-8625

BID: 94096, 94094, 94097, 94098, 94100, 94102, 94101, 94105, 94106, 94103, 94107