Heap-based buffer overflow in GIFLIB - CVE-2025-31344

 

Heap-based buffer overflow in GIFLIB - CVE-2025-31344

Published: April 8, 2025


Vulnerability identifier: #VU107132
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-31344
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the DumpScreen2RGB() function in gif2rgb.c. A remote attacker can pass specially crafted image file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

GIFLIB
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Basesystem Module
openSUSE Leap
openEuler
Anolis OS
Fedora
APEX Cloud Platform for Red Hat OpenShift
libgif6
giflib-debugsource
giflib-devel
libgif6-debuginfo
giflib-progs-debuginfo
giflib-progs
libgif6-32bit
libgif6-debuginfo-32bit
giflib-help
giflib
giflib-utils
giflib-debuginfo
giflib-devel-32bit
libgif7-32bit
libgif7-32bit-debuginfo
libgif7-debuginfo
libgif7

How to mitigate CVE-2025-31344

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

APEX Cloud Platform for Red Hat OpenShift - update to 03.02.04.00
libgif6 - update to 5.0.5-13.9.1
giflib-debugsource - addressed in versions 5.0.5-13.9.1, 5.2.2-150000.4.16.1
giflib-devel - addressed in versions 5.0.5-13.9.1, 5.2.2-150000.4.16.1
libgif6-debuginfo - update to 5.0.5-13.9.1
giflib-progs-debuginfo - addressed in versions 5.0.5-13.9.1, 5.2.2-150000.4.16.1
giflib-progs - addressed in versions 5.0.5-13.9.1, 5.2.2-150000.4.16.1
libgif6-32bit - update to 5.0.5-13.9.1
libgif6-debuginfo-32bit - update to 5.0.5-13.9.1
giflib-help - update to 5.2.2-2
giflib - update to 5.2.2-2
giflib-devel - update to 5.2.2-2
giflib-utils - update to 5.2.2-2
giflib-debuginfo - update to 5.2.2-2
giflib-debugsource - update to 5.2.2-2
giflib - update to 5.2.2-2
giflib-devel - update to 5.2.2-2
giflib-utils - update to 5.2.2-2
giflib - addressed in versions 5.2.2-6.fc40, 5.2.2-6.fc41, 5.2.2-6.fc42
giflib-devel-32bit - update to 5.2.2-150000.4.16.1
libgif7-32bit - update to 5.2.2-150000.4.16.1
libgif7-32bit-debuginfo - update to 5.2.2-150000.4.16.1
libgif7-debuginfo - update to 5.2.2-150000.4.16.1
libgif7 - update to 5.2.2-150000.4.16.1

External References

Related Security Bulletins