Alpine: curl: security update to 7.49.1-r4

critical Tenable Self-Hosted Container Security Plugin ID 403951

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://security.alpinelinux.org/vuln/CVE-2016-8615

https://security.alpinelinux.org/vuln/CVE-2016-8616

https://security.alpinelinux.org/vuln/CVE-2016-8617

https://security.alpinelinux.org/vuln/CVE-2016-8618

https://security.alpinelinux.org/vuln/CVE-2016-8619

https://security.alpinelinux.org/vuln/CVE-2016-8620

https://security.alpinelinux.org/vuln/CVE-2016-8621

https://security.alpinelinux.org/vuln/CVE-2016-8622

https://security.alpinelinux.org/vuln/CVE-2016-8623

https://security.alpinelinux.org/vuln/CVE-2016-8624

Plugin Details

Severity: Critical

ID: 403951

Version: Revision 1.26

Type: Local

Published: 10/31/2023

Updated: 3/12/2025

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

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

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