Memory Leak Affecting giflib-utils package, versions <0:4.1.6-9.amzn2.0.4


Severity

Recommended
low

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.72% (76th 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-AMZN2-GIFLIBUTILS-12851487
  • published17 Sept 2025
  • disclosed14 Jun 2022

Introduced: 14 Jun 2022

CVE-2021-40633  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 giflib-utils to version 0:4.1.6-9.amzn2.0.4 or higher.
This issue was patched in ALAS2-2025-2998.

NVD Description

Note: Versions mentioned in the description apply only to the upstream giflib-utils package and not the giflib-utils package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allows remote attackers trigger an out of memory exception or denial of service via a gif format file.

CVSS Base Scores

version 3.1