Description
Stack-based buffer overflow in the set_color_table function in sunras.c in the SUNRAS plugin in Gimp 2.2.14 allows user-assisted remote attackers to execute arbitrary code via a crafted RAS file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gimp | 2.2.14-2 | — |
| Debian 13 | gimp | 2.2.14-2 | — |
| Debian 12 | gimp | 2.2.14-2 | — |
| Debian 4.0 | gimp | 2.2.13-1etch1 | DSA-1301-1 |
| Debian 3.1 | gimp | 2.2.6-1sarge2 | DSA-1301-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | gimp +2 | 2:2.2.13-2.el5 | RHSA-2007:0343 |
| RHEL 4 | gimp +1 | 1:2.0.5-6.2.el4 | RHSA-2007:0343 |
| RHEL 3 | gimp +2 | 1:1.2.3-20.3.el3 | RHSA-2007:0343 |
| RHEL 2 | gimp +2 | 1:1.2.1-7.1.el2_1 | RHSA-2007:0343 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gimp | 2.10.24-3.1 | openSUSE-SU-2024:10785-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- GIMP 2.2.14 (Windows x86) - '.ras' Download/Execute Buffer Overflow EDB-3888 · local · May 9, 2007 · verified
- GIMP 2.2.14 - '.ras' SUNRAS Plugin Buffer Overflow EDB-3801 · local · Apr 26, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- RHSA-2007:0343 Red Hat Security Advisory: gimp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1301-1 gimp Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10785-1 gimp-2.10.24-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=238422
- DSA-1301 vendor-advisory
- GLSA-200705-08 vendor-advisory
- 25573 third-party-advisory
- 25466 third-party-advisory
- 23680 vdb-entry
- 20070430 FLEA-2007-0015-1: gimp mailing-list
- gimp-sunras-plugin-bo(33911) vdb-entry
- oval:org.mitre.oval:def:10054 vdb-entry signature
- 201320 vendor-advisory
- 25359 third-party-advisory
- ADV-2007-1560 vdb-entry
- RHSA-2007:0343 vendor-advisory
- 1018092 vdb-entry
- SUSE-SR:2007:011 vendor-advisory
- 28114 third-party-advisory
- https://issues.rpath.com/browse/RPL-1318
- 25012 third-party-advisory
- oval:org.mitre.oval:def:5960 vdb-entry signature
- USN-467-1 vendor-advisory
- 103170 vendor-advisory
- 25346 third-party-advisory
- MDKSA-2007:108 vendor-advisory
- 25111 third-party-advisory
- ADV-2007-4241 vdb-entry
- 25239 third-party-advisory
- 25167 third-party-advisory