Out-of-bounds read in apk-tools (Alpine package) - CVE-2021-30139

 

Out-of-bounds read in apk-tools (Alpine package) - CVE-2021-30139

Published: April 14, 2021


Vulnerability identifier: #VU52220
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-30139
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

apk-tools (Alpine package)
Juniper Cloud Native Router
Junos cRPD

How to mitigate CVE-2021-30139

Install updates from vendor's website.

apk-tools (Alpine package) - addressed in versions 2.10.6-r0, 2.12.5-r0
Juniper Cloud Native Router - update to 23.4R1
Junos cRPD - update to 23.4R1

External References

Related Security Bulletins