CVE-2019-5086
High · 8.8CVSS
8.8
EPSS
3.2%
Published
Nov 21, 2019
CISA due date
—
Cloudanix analysis
A bug in certain image conversion programs lets attackers take over a computer simply by tricking someone into opening a specially made picture file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in flattenIncrementally during tile traversal in xcf2png/xcf2pnm allows memory corruption leading to arbitrary code execution.
Why it matters to the business
Processing untrusted image files with affected tools can result in full system compromise, data theft, or ransomware deployment on developer or imaging workstations.
How an attack unfolds
An attacker creates a malicious XCF file containing oversized tile dimensions that trigger an integer overflow when the victim opens it with xcf2png or xcf2pnm, corrupting memory and executing attacker-controlled code.
How to fix it
Upgrade xcftools to a version containing the fix for this integer overflow; if no patched release exists, replace the tool with an alternative XCF processor or isolate its use inside a sandbox.
How to confirm the fix worked
Confirm xcftools version is newer than 1.0.7 and test parsing of known-bad XCF samples in a controlled environment; recompile from source with integer overflow checks enabled.
Typical attack path
- Craft XCF file with malicious tile metadata
- Deliver file via email, download, or shared storage
- Victim opens file with vulnerable xcftools binary
- Overflow corrupts heap and redirects execution
How to detect it
Search process execution logs and EDR telemetry for xcf2png or xcf2pnm launched against files from untrusted sources; inspect core dumps or memory artifacts for heap corruption patterns around tile processing.
What your security team should do
- Immediately remove or sandbox xcf2png and xcf2pnm binaries from production and developer systems
- Block inbound XCF files at mail and web gateways until replacement tooling is deployed
- Add xcftools execution to endpoint monitoring and hunt for anomalous child processes
The record
An exploitable integer overflow vulnerability exists in the flattenIncrementally function in the xcf2png and xcf2pnm binaries of xcftools, version 1.0.7. An integer overflow can occur while walking through tiles that could be exploited to corrupt memory and execute arbitrary code. In order to trigger this vulnerability, a victim would need to open a specially crafted XCF file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:9 | xcftools | 0 | 1.0.7-6+deb9u1 |
| Ubuntu:18.04:LTS | xcftools | 0 | 1.0.7-6ubuntu0.1 |
| Ubuntu:20.04:LTS | xcftools | 0 | 1.0.7-6ubuntu0.20.04.1 |
| Ubuntu:Pro:16.04:LTS | xcftools | 0 | 1.0.7-5ubuntu0.1~esm1 |
Related vulnerabilities
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190
- CVE-2026-102633 libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in… CWE-190