CVE Vulnerabilities

CVE-2019-5087

Integer Overflow to Buffer Overflow

Published: Nov 21, 2019 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

An exploitable integer overflow vulnerability exists in the flattenIncrementally function in the xcf2png and xcf2pnm binaries of xcftools 1.0.7. An integer overflow can occur while calculating the rows allocation size, that could be exploited to corrupt memory and eventually execute arbitrary code. In order to trigger this vulnerability, a victim would need to open a specially crafted XCF file.

Weakness

The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

Affected Software

Name Vendor Start Version End Version
Xcftools Xcftools_project 1.0.7 (including) 1.0.7 (including)
Xcftools Ubuntu bionic *
Xcftools Ubuntu disco *
Xcftools Ubuntu eoan *
Xcftools Ubuntu esm-apps/xenial *
Xcftools Ubuntu focal *
Xcftools Ubuntu groovy *
Xcftools Ubuntu trusty *
Xcftools Ubuntu xenial *

References