Use-after-free in libvips library

Published: 2019-10-13 | Updated: 2019-10-13
Severity Medium
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2019-17534
CWE ID CWE-416
Exploitation vector Network
Public exploit N/A
Vulnerable software libvips Subscribe
Vendor libvips

Security Advisory

This security advisory describes one medium risk vulnerability.

1) Use-after-free

Severity: Medium

CVSSv3: 6.5 [CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C] [PCI]

CVE-ID: CVE-2019-17534

CWE-ID: CWE-416 - Use After Free

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error within the vips_foreign_load_gif_scan_image() function in foreign/gifload.c in libvips library when trying to access a color map before a DGifGetImageDesc call. A remote attacker can pass specially crafted input to the application, trigger a use-after-free error and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

libvips: 8.8.0, 8.8.1

CPE External links

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16796

https://github.com/libvips/libvips/commit/ce684dd008532ea0bf9d4a1d89bacb35f4a83f4d

https://github.com/libvips/libvips/compare/v8.8.1...v8.8.2

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.