#VU52220 Out-of-bounds read in apk-tools (Alpine package)


Published: 2021-04-14

Vulnerability identifier: #VU52220

Vulnerability risk: Medium

CVSSv3.1: 4.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-30139

CWE-ID: CWE-125

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
apk-tools (Alpine package)
Operating systems & Components / Operating system package or component

Vendor: Alpine Linux Development Team

Description

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

The vulnerability exists due to a boundary condition when processing ".tar" archives. A remote attacker can create a specially crafted ".tar" file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

apk-tools (Alpine package): 2.10.0-r0 - 2.12.4-r3


External links
http://alpinelinux.org/posts/Alpine-3.10.9-3.11.11-3.12.7-released.html
http://gitlab.alpinelinux.org/alpine/aports/-/issues/12606
http://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10741


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.


Latest bulletins with this vulnerability