Multiple Vulnerabilities in GIMP Could Allow for Remote Code Execution

ITS Advisory Number: 
2018-008
Date(s) Issued: 
Wednesday, January 24, 2018
Subject: 
Multiple Vulnerabilities in GIMP Could Allow for Remote Code Execution
Overview: 

Multiple vulnerabilities have been discovered in GIMP, the most severe of which could allow for remote code execution. GIMP is an open source graphics editor that is used for editing images. Successful exploitation of the most severe of these vulnerabilities could allow for remote code execution within the context of the application. Depending on the privileges associated with the application, an attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Applications configured to have fewer user rights on the system could be less impacted than those that operate with administrative user rights.

Systems Affected: 
  • GIMP 2.8.22 is vulnerable; other versions may also be affected.
RISK
GOVERNMENT
Large and medium government entities: 
High
Small government entities: 
High
BUSINESS
Large and medium business entities: 
High
Small business entities: 
High
Home Users: 
High
Description: 

Multiple vulnerabilities have been discovered in GIMP, the most severe of which could allow for remote code execution. Details of these vulnerabilities are as follows:

  • A heap-based buffer over-read in load_image in plug-ins/common/file-gbr.c in the gbr import parser, related to mishandling of UTF-8 data. (CVE-2017-17784)
  • A heap-based buffer overflow in the fli_read_brun function in plug-ins/file-fli/fli.c. (CVE-2017-17785)
  • A heap-based buffer over-read in ReadImage in plug-ins/common/file-tga.c (related to bgr2rgb.part.1) via an unexpected bits-per-pixel value for an RGBA image. (CVE-2017-17786)
  • A heap-based buffer over-read in read_creator_block in plug-ins/common/file-psp.c. (CVE-2017-17787)
  • A stack-based buffer over-read in xcf_load_stream in app/xcf/xcf.c when there is no '\0' character after the version string. (CVE-2017-17788)
  • A heap-based buffer overflow in read_channel_data in plug-ins/common/file-psp.c. (CVE-2017-17789)

Successful exploitation of the most severe of these vulnerabilities could allow for remote code execution within the context of the application. Depending on the privileges associated with the application, an attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Applications configured to have fewer user rights on the system could be less impacted than those that operate with administrative user rights.

Actions: 
  • After appropriate testing, immediately apply updates provided by GIMP to vulnerable systems.
  • Run all software as a non-privileged user (one without administrative privileges) to diminish the effects of a successful attack.
  • Remind users not to visit un-trusted websites or follow links provided by unknown or un-trusted sources.
  • Inform and educate users regarding the threats posed by hypertext links contained in emails or attachments especially from un-trusted sources.
  • Apply the Principle of Least Privilege to all systems and services.