REDHAT-BUG-2520583: Buffer Overflow
GIMP TIF File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the parsing of TIF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-29399.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Mitigate exposure by avoiding opening untrusted or malicious TIF files (requires user interaction: visit a malicious page or open a malicious file).
- Compensating control
Since the flaw is within GIMP’s parsing of TIF files, restrict access to GIMP or block/monitor incoming TIF files from untrusted sources to prevent exploitation.
Event History
Frequently Asked Questions
What must an attacker persuade a target to do to exploit this issue?
The target must visit a malicious page or open a malicious file containing a crafted TIF image. Exploitation requires user interaction.
What level of access could successful exploitation provide?
An attacker can execute arbitrary code in the context of the current GIMP process. The provided information does not indicate privilege escalation beyond that process context.