Alpine: multiple file packages, multiple libmagic packages: security update to 5.36-r0

high Tenable Cloud Security Plugin ID 423873

Description

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

- ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input for every encryption operation. RFC
7539 specifies that the nonce value (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce
length and front pads the nonce with 0 bytes if it is less than 12 bytes. However it also incorrectly
allows a nonce to be set of up to 16 bytes. In this case only the last 12 bytes are significant and any
additional leading bytes are ignored. It is a requirement of using this cipher that nonce values are
unique. Messages encrypted using a reused nonce value are susceptible to serious confidentiality and
integrity attacks. If an application changes the default nonce length to be longer than 12 bytes and then
makes a change to the leading bytes of the nonce expecting the new value to be a new unique nonce then
such an application could inadvertently encrypt messages with a reused nonce. Additionally the ignored
bytes in a long nonce are not covered by the integrity guarantee of this cipher. Any application that
relies on the integrity of these ignored leading bytes of a long nonce may be further affected. Any
OpenSSL internal use of this cipher, including in SSL/TLS, is safe because no such use sets such a long
nonce value. However user applications that use this cipher directly and set a non-default nonce length to
be longer than 12 bytes may be vulnerable. OpenSSL versions 1.1.1 and 1.1.0 are affected by this issue.
Due to the limited scope of affected deployments this has been assessed as low severity and therefore we
are not creating new releases at this time. Fixed in OpenSSL 1.1.1c (Affected 1.1.1-1.1.1b). Fixed in
OpenSSL 1.1.0k (Affected 1.1.0-1.1.0j). (CVE-2019-1543)

- do_bid_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to
file_printf and file_vprintf. (CVE-2019-8904)

- do_core_note in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to
file_printable, a different vulnerability than CVE-2018-10360. (CVE-2019-8905)

- do_core_note in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
(CVE-2019-8906)

- do_core_note in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service
(stack corruption and application crash) or possibly have unspecified other impact. (CVE-2019-8907)

See Also

https://security.alpinelinux.org/vuln/CVE-2019-1543

https://security.alpinelinux.org/vuln/CVE-2019-8904

https://security.alpinelinux.org/vuln/CVE-2019-8905

https://security.alpinelinux.org/vuln/CVE-2019-8906

https://security.alpinelinux.org/vuln/CVE-2019-8907

Plugin Details

Severity: High

ID: 423873

Version: Revision 1.7

Type: Local

Published: 4/4/2025

Updated: 5/30/2025

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS Score Source: CVE-2019-8907

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 1/3/2019

Reference Information

CVE: CVE-2019-1543, CVE-2019-8904, CVE-2019-8905, CVE-2019-8906, CVE-2019-8907

BID: 107349, 107130, 107137, 107158