#VU23843 Off-by-one error in libarchive


Published: 2019-12-30

Vulnerability identifier: #VU23843

Vulnerability risk: High

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

CVE-ID: N/A

CWE-ID: CWE-193

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
libarchive
Client/Desktop applications / Software for archiving

Vendor: libarchive

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to an off-by-one error when in /libarchive/archive_read_disk_entry_from_file.c when working with readlink(2). A remote attacker can pass a specially crafted archive to the application, trigger an off-by-one error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

libarchive: 3.0.0 - 3.4.0


External links
http://github.com/libarchive/libarchive/releases/tag/v3.4.1
http://github.com/libarchive/libarchive/commit/1dae5a549fe4ab99fd3a49a9edcf897a7b2b1844


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