Vulnerabilities > CVE-2012-2763 - Classic Buffer Overflow vulnerability in Gimp
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
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.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Exploit-Db
description GIMP 2.6 script-fu < 2.8.0 - Buffer Overflow Vulnerability. CVE-2012-2763. Dos exploit for windows platform id EDB-ID:18956 last seen 2016-02-02 modified 2012-05-31 published 2012-05-31 reporter Joseph Sheridan source https://www.exploit-db.com/download/18956/ title GIMP 2.6 script-fu < 2.8.0 - Buffer Overflow Vulnerability description GIMP script-fu Server Buffer Overflow. CVE-2012-2763. Remote exploit for windows platform id EDB-ID:18973 last seen 2016-02-02 modified 2012-06-02 published 2012-06-02 reporter metasploit source https://www.exploit-db.com/download/18973/ title GIMP script-fu Server Buffer Overflow
Metasploit
description | This module exploits a buffer overflow in the script-fu server component on GIMP <= 2.6.12. By sending a specially crafted packet, an attacker may be able to achieve remote code execution under the context of the user. This module has been tested on GIMP for Windows from installers provided by Jernej Simoncic. |
id | MSF:EXPLOIT/WINDOWS/MISC/GIMP_SCRIPT_FU |
last seen | 2020-05-26 |
modified | 2017-07-24 |
published | 2012-06-01 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/misc/gimp_script_fu.rb |
title | GIMP script-fu Server Buffer Overflow |
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201209-23.NASL description The remote host is affected by the vulnerability described in GLSA-201209-23 (GIMP: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in GIMP. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process or cause a Denial of Service condition. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 62379 published 2012-09-29 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/62379 title GLSA-201209-23 : GIMP: Multiple vulnerabilities NASL family Solaris Local Security Checks NASL id SOLARIS11_GIMP_20120918.NASL description The remote Solaris system is missing necessary patches to address security updates : - 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. (CVE-2012-2763) last seen 2020-06-01 modified 2020-06-02 plugin id 80619 published 2015-01-19 reporter This script is Copyright (C) 2015-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/80619 title Oracle Solaris Third-Party Patch Update : gimp (cve_2012_2763_buffer_overflow) NASL family SuSE Local Security Checks NASL id OPENSUSE-2012-583.NASL description Fixed 2 gimp security bugs : - fixed bnc#724628 CVE-2012-3481: gimp: GIF plugin last seen 2020-06-05 modified 2014-06-13 plugin id 74745 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74745 title openSUSE Security Update : gimp (openSUSE-SU-2012:1131-1) NASL family SuSE Local Security Checks NASL id SUSE_11_GIMP-120713.NASL description This update of Gimp fixed a remotely exploitable buffer overflow in Script-Fu last seen 2020-06-05 modified 2013-01-25 plugin id 64147 published 2013-01-25 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/64147 title SuSE 11.1 Security Update : Gimp (SAT Patch Number 6542) NASL family SuSE Local Security Checks NASL id OPENSUSE-2012-543.NASL description Multiple integer overflows in various decoder plug-ins of GIMP have been fixed. last seen 2020-06-05 modified 2014-06-13 plugin id 74735 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74735 title openSUSE Security Update : gimp (openSUSE-SU-2012:1080-1)
Packetstorm
data source | https://packetstormsecurity.com/files/download/113201/gimp_script_fu.rb.txt |
id | PACKETSTORM:113201 |
last seen | 2016-12-05 |
published | 2012-06-02 |
reporter | juan vazquez |
source | https://packetstormsecurity.com/files/113201/GIMP-script-fu-Server-Buffer-Overflow.html |
title | GIMP script-fu Server Buffer Overflow |
Saint
bid | 53741 |
description | GIMP Script-Fu Server Buffer Overflow |
osvdb | 82429 |
title | gimp_scriptfu_server |
type | remote |
Seebug
bulletinFamily exploit description No description provided by source. id SSV:60173 last seen 2017-11-19 modified 2012-06-01 published 2012-06-01 reporter Root source https://www.seebug.org/vuldb/ssvid-60173 title GIMP 2.6 script-fu < 2.8.0 Buffer Overflow Vulnerability bulletinFamily exploit description No description provided by source. id SSV:72945 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-72945 title GIMP 2.6 script-fu < 2.8.0 - Buffer Overflow Vulnerability
References
- https://bugzilla.gnome.org/show_bug.cgi?id=679215
- http://www.openwall.com/lists/oss-security/2012/07/01/1
- http://www.openwall.com/lists/oss-security/2012/05/31/1
- http://www.reactionpenetrationtesting.co.uk/advisories/scriptfu-buffer-overflow-GIMP-2.6.html
- http://git.gnome.org/browse/gimp/commit/?h=gimp-2-6&id=744f7a4a2b5acb8b531a6f5dd8744ebb95348fc2
- http://lists.opensuse.org/opensuse-security-announce/2012-09/msg00000.html
- http://lists.opensuse.org/opensuse-updates/2012-09/msg00043.html
- http://secunia.com/advisories/50737
- http://security.gentoo.org/glsa/glsa-201209-23.xml