Out-of-bounds Write Affecting giflib package, versions <0:5.2.1-9.amzn2023.0.4


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.07% (65th 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-AMZN2023-GIFLIB-17417047
  • published23 Jun 2026
  • disclosed18 Mar 2026

Introduced: 18 Mar 2026

CVE-2026-26740  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 giflib to version 0:5.2.1-9.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2026-1883.

NVD Description

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

Buffer Overflow vulnerability in giflib v.5.2.2 allows a remote attacker to cause a denial of service via the EGifGCBToExtension overwriting an existing Graphic Control Extension block without validating its allocated size.

CVSS Base Scores

version 3.1