CVE-2016-4994
High · 7.8CVSS
7.8
EPSS
3.1%
Published
Jul 12, 2016
CISA due date
—
Cloudanix analysis
Opening certain image files in GIMP can let attackers take control of the computer or crash the program.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free in xcf_load_image during parsing of crafted XCF image data allows memory corruption that can lead to denial of service or arbitrary code execution.
Why it matters to the business
Users opening malicious image files may experience application crashes or full system compromise, disrupting design and image-editing workflows across the organization.
How an attack unfolds
An attacker creates a specially crafted XCF file that triggers the use-after-free condition when loaded; the victim opens the file in GIMP, and the resulting memory corruption is leveraged to execute attacker-controlled code.
How to fix it
Upgrade gnome/gimp to a build containing commit cd2bbf745419be7e7984d9309688604107b3fa72 or later; rebuild from source if using GIT checkout.
How to confirm the fix worked
Verify the installed binary or source tree contains commit cd2bbf745419be7e7984d9309688604107b3fa72 and test that crafted XCF files no longer cause crashes or unexpected behavior.
Typical attack path
- Craft a malicious XCF file that triggers the use-after-free in xcf_load_image
- Distribute the file via email, download link, or shared storage
- Victim opens the file in an affected GIMP installation
- Memory corruption is exploited for code execution or crash
How to detect it
Monitor for GIMP process crashes while handling XCF files and inspect system logs or crash dumps for signs of memory corruption after XCF file access.
What your security team should do
- Immediately update all GIMP installations to the fixed commit or later release
- Block or sandbox untrusted XCF files until patches are applied
- Educate users not to open image files from unknown sources
The record
Use-after-free vulnerability in the xcf_load_image function in app/xcf/xcf-load.c in GIMP allows remote attackers to cause a denial of service (program crash) or possibly execute arbitrary code via a crafted XCF file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | gimp | 0 | 2.8.16-2.2 |
| Debian:12 | gimp | 0 | 2.8.16-2.2 |
| Debian:13 | gimp | 0 | 2.8.16-2.2 |
| Debian:7 | gimp | 0 | 2.8.2-2+deb7u2 |
| Debian:8 | gimp | 0 | 2.8.14-1+deb8u1 |
| Mageia:5 | gimp | 0 | 2.8.14-4.1.mga5 |
| Red Hat:enterprise_linux:7::client | gimp | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::client | gimp-debuginfo | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::client | gimp-devel | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::client | gimp-devel-tools | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-ca | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-da | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-de | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-el | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-en_GB | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-es | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-fr | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-it | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-ja | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-ko | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-nl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-nn | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-pt_BR | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-ru | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-sl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-sv | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-help-zh_CN | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::client | gimp-libs | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::server | gimp | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::server | gimp-debuginfo | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::server | gimp-devel | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::server | gimp-devel-tools | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-ca | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-da | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-de | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-el | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-en_GB | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-es | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-fr | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-it | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-ja | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-ko | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-nl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-nn | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-pt_BR | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-ru | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-sl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-sv | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-help-zh_CN | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::server | gimp-libs | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-debuginfo | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-devel | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-devel-tools | 0 | 2:2.8.16-3.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-ca | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-da | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-de | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-el | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-en_GB | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-es | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-fr | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-it | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-ja | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-ko | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-nl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-nn | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-pt_BR | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-ru | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-sl | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-sv | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-help-zh_CN | 0 | 0:2.8.2-1.el7 |
| Red Hat:enterprise_linux:7::workstation | gimp-libs | 0 | 2:2.8.16-3.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | gimp | 0 | 2.8.10-7.8 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | gimp | 0 | 2.6.2-3.34.47.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | gimp | 0 | 2.8.10-7.8 |
| SUSE:Linux Enterprise Workstation Extension 12 SP1 | gimp | 0 | 2.8.10-7.8 |
| Ubuntu:14.04:LTS | gimp | 0 | 2.8.10-0ubuntu1.1 |
| Ubuntu:16.04:LTS | gimp | 0 | 2.8.16-1ubuntu1.1 |
| openSUSE:Tumbleweed | gimp | 0 | 2.8.18-1.4 |
Related vulnerabilities
- CVE-2025-5473 GIMP ICO File Parsing Integer Overflow Remote Code Execution Vulnerability. Also affects gimp
- CVE-2025-2760 GIMP XWD File Parsing Integer Overflow Remote Code Execution Vulnerability. Also affects gimp
- CVE-2023-44443 GIMP PSP File Parsing Integer Overflow Remote Code Execution Vulnerability. Also affects gimp
- CVE-2023-44444 GIMP PSP File Parsing Off-By-One Remote Code Execution Vulnerability. Also affects gimp
- CVE-2023-44441 GIMP DDS File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. Also affects gimp
- CVE-2023-44442 GIMP PSD File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. Also affects gimp
- CVE-2017-17784 In GIMP 2.8.22, there is a heap-based buffer over-read in load_image in… Also affects gimp
- CVE-2012-3236 fits-io.c in GIMP before 2.8.1 allows remote attackers to cause a denial of service (NULL… Also affects gimp