CIS Logo
tagline: Confidence in the Connected World

Multiple Vulnerabilities in GIMP Could Allow for Remote Code Execution

MS-ISAC ADVISORY NUMBER:

2018-008

DATE(S) ISSUED:

01/24/2018

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.

THREAT INTELLIGENCE:

There are currently no reports of these vulnerabilities being exploited in the wild.

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
Businesses:
  • Large and medium business entities: HIGH
  • Small business entities: HIGH
Home Users:
HIGH

TECHNICAL SUMMARY:

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 '' 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.

RECOMMENDATIONS:

We recommend the following actions be taken:

  • Apply update provided by GIMP to vulnerable systems immediately after appropriate testing.
  • 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.

REFERENCES:

Get Email Updates When Cyber Threats Like This Arise

Arrow Subscribe to Advisories

Protect Your Systems from Cyber Threats Like This

CIS Control That Helps Avoid This Issue Arrow CIS Control 3: Continuous Vulnerability Assessment and Remediation

Information Hub : Advisories