Description
Buffer overflow in the readstr_upto function in plug-ins/script-fu/tinyscheme/scheme.c in GIMP 2.6.12 and earlier, and possibly 2.6.13, allows remote attackers to execute arbitrary code via a long string in a command to the script-fu server.
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.8.0-1 | — |
| Debian 13 | gimp | 2.8.0-1 | — |
| Debian 12 | gimp | 2.8.0-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.
Metasploit 1 module
-
GIMP script-fu Server Buffer Overflow
exploit/windows/misc/gimp_script_fu
Exploit-DB 2
- GIMP script-fu - Server Buffer Overflow (Metasploit) EDB-18973 · remote · Jun 2, 2012 · verified
- GIMP 2.6 script-fu < 2.8.0 - Buffer Overflow (PoC) EDB-18956 · dos · May 31, 2012
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- GLSA-201209-23 vendor-advisory
- http://git.gnome.org/browse/gimp/commit/?h=gimp-2-6&id=744f7a4a2b5acb8b531a6f5dd8744ebb95348fc2
- [oss-security] 20120630 Re: ScriptFu Server Buffer Overflow in GIMP <= 2.6 mailing-list
- openSUSE-SU-2012:1080 vendor-advisory
- openSUSE-SU-2012:1131 vendor-advisory
- 50737 third-party-advisory
- https://bugzilla.gnome.org/show_bug.cgi?id=679215
- http://www.reactionpenetrationtesting.co.uk/advisories/scriptfu-buffer-overflow-GIMP-2.6.html
- [oss-security] 20120530 ScriptFu Server Buffer Overflow in GIMP <= 2.6 mailing-list