Heap-based Buffer Overflow Affecting giflib package, versions [,5.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-GIFLIB-10360244
  • published15 Jun 2025
  • disclosed14 Apr 2025
  • creditUnknown

Introduced: 14 Apr 2025

CVE-2025-31344  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade giflib to version 5.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow through the gif2rgb.C file. An attacker can corrupt memory and potentially execute arbitrary code by supplying a crafted GIF file that triggers a heap-based buffer overflow.

CVSS Base Scores

version 4.0
version 3.1