cbcvebase.
CVE-2012-2763
published 2012-07-12

CVE-2012-2763: 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…

PriorityP266high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
81.72%
99.6th percentile
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.

Affected

6 ranges
VendorProductVersion rangeFixed in
debiangimp< gimp 2.8.0-1 (bookworm)gimp 2.8.0-1 (bookworm)
gimpgimp<= 2.6.13
gimpgimp>= 0 < 2.8.0-12.8.0-1
gimpgimp>= 0 < 2.8.0-12.8.0-1
gimpgimp>= 0 < 2.8.0-12.8.0-1
gimpgimp>= 0 < 2.8.0-12.8.0-1

Detection & IOCsextracted from sources · hover to see the quote

port10008
pathplug-ins/script-fu/tinyscheme/scheme.c
pathC:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\script-fu.exe
bytes
\x47 (Magic byte 'G') followed by 2-byte big-endian length, then command payload
  • Monitor for TCP connections to port 10008 (GIMP script-fu server default port); large payloads (>1086 bytes) sent to this port are indicative of exploitation attempts.
  • Detect script-fu protocol packets starting with magic byte 0x47 ('G') followed by a 2-byte big-endian length field where the declared length exceeds safe bounds (e.g., >1086 bytes for GIMP 2.6.1, >1102 bytes for GIMP 2.6.10).
  • The overflow overwrites function pointers in the .bss segment (uninitialized global variables); specifically dword_420E20 is overwritten to redirect EIP via a 'call edx' instruction at 0x0040c86d.
  • For GIMP 2.6.10 target, EIP control is achieved at offset 1102 with return address 0x00425a52 (EDX as BufferRegister); for GIMP 2.6.1, offset 1086 with return address 0x00425a22 (EAX as BufferRegister).
  • The vulnerable function is readstr_upto in plug-ins/script-fu/tinyscheme/scheme.c; process-level monitoring of script-fu.exe for anomalous memory access violations (0xc0000005) can indicate active exploitation.
  • ·The script-fu server must be explicitly started by the user; it is not enabled by default, significantly limiting remote attack surface.
  • ·Exploitation targets Windows builds without DEP; DEP-enabled systems are not covered by the documented targets.
  • ·Red Hat assessed this as low severity and will not fix it in RHEL 5 or RHEL 6; Debian resolved it in GIMP 2.8.0-1.
  • ·Payload space is limited to 1024 bytes and must avoid bad characters \x00\x09\x0a\x0d\x20\x28\x29\x3b and all bytes 0x80–0xff.

CVSS provenance

nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.