CVE-2025-31344 The giflib open-source component has a buffer overflow vulnerability

High 7.3 Published Updated

A heap-based buffer overflow in giflib allows attackers to execute arbitrary code or cause denial of service via crafted GIF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-31344?

CVE-2025-31344 is a high-severity memory corruption vulnerability in openEuler giflib, published on 14 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Heap-based Buffer Overflow vulnerability in openEuler giflib on Linux. This vulnerability is associated with program files gif2rgb.C.

This issue affects giflib: through 5.2.2.

Weakness: CWE-122

Which versions are affected by CVE-2025-31344?

Linux distribution packages (18)
giflib SUSE:Enterprise Storage 7.1All versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server 12 SP5-LTSSAll versions5.0.5-13.9.1
giflib SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions5.0.5-13.9.1
giflib SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions5.2.2-150000.4.16.1
giflib SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions5.2.2-150000.4.16.1
giflib SUSE:Manager Proxy 4.3All versions5.2.2-150000.4.16.1
giflib SUSE:Manager Server 4.3All versions5.2.2-150000.4.16.1
giflib openSUSE:Leap 15.6All versions5.2.2-150000.4.16.1

How do I fix CVE-2025-31344?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-31344 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31344 exists.

Sources

Also known as ALPINE-CVE-2025-31344, AZL-60246, AZL-60261, BELL-CVE-2025-31344, CLEANSTART-2026-HB55989, DEBIAN-CVE-2025-31344 and 12 more.

Is CVE-2025-31344 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free