openEuler giflib Heap-Based Buffer Overflow Vulnerability

Vulnerability

A heap-based buffer overflow vulnerability has been identified in the openEuler giflib package, specifically in version 5.2.2 and earlier. The issue arises in the 'gif2rgb' program, where the 'DumpScreen2RGB' function improperly accesses the color map. This out-of-bounds access leads to a heap buffer overflow.

Impact

Exploitation of this vulnerability causes a heap-based buffer overflow, which can potentially be exploited to execute arbitrary code.

Reproduction

The vulnerability can be reproduced by compiling the giflib package with AddressSanitizer enabled, and then using the gif2rgb command to process a crafted GIF file that exploits the buffer overflow.

Remediation

Users can update to the latest version of giflib, where this vulnerability has been fixed. Instructions for updating can be found in the openEuler documentation.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
7.5
exploitability
6.8
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.