cve.bz

CVE-2026-26740 giflib project giflib: Out-of-bounds Write

8.2 highExploit referenceEPSS 0.7%

High (8.2) in giflib project giflib. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.2 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-03-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-26740 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-26740?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-26740?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-26740 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
giflib_project:giflib5.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11giflib5.1.9-2+deb11u1DLA-4650-1
Debian12giflib5.2.1-2.5+deb12u1DEBIAN-CVE-2026-26740
Debian13giflib5.2.2-1+deb13u1DEBIAN-CVE-2026-26740
Debian14giflib6.1.3-1DEBIAN-CVE-2026-26740
Ubuntu20.04:LTS, 25.10, Pro:16.04:LTS and 1 moregiflibno fix listedUBUNTU-CVE-2026-26740
Ubuntu22.04:LTSgiflib5.1.9-2ubuntu0.3UBUNTU-CVE-2026-26740 USN-8583-1
Ubuntu24.04:LTSgiflib5.2.2-1ubuntu1.2UBUNTU-CVE-2026-26740 USN-8583-1
Ubuntu26.04:LTSgiflib5.2.2-1ubuntu3.2UBUNTU-CVE-2026-26740 USN-8583-1
Red Hatenterprise_linux:8::appstreamgiflib, giflib-debuginfo, giflib-debugsource and 1 more0:5.1.4-5.el8_10RHSA-2026:33503
Red Hatenterprise_linux:8::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.11.0.10-1.el8RHSA-2026:9689
Red Hatenterprise_linux:8::appstream, rhel_aus:8.4::appstream, rhel_aus:8.6::appstream and 3 morejava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 10 more1:1.8.0.492.b09-1.el8RHSA-2026:9683
Red Hatenterprise_linux:8::appstream, rhel_aus:8.6::appstream, rhel_e4s:8.6::appstream and 1 morejava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.19.0.10-1.el8RHSA-2026:9686
Red Hatenterprise_linux:8::crbgiflib-devel, giflib-debuginfo, giflib-debugsource and 1 more0:5.1.4-5.el8_10RHSA-2026:33503
Red Hatenterprise_linux:8::crbjava-1.8.0-openjdk-debuginfo, java-1.8.0-openjdk-fastdebug, java-1.8.0-openjdk-slowdebug and 22 more1:1.8.0.492.b09-1.el8RHSA-2026:9683
Red Hatenterprise_linux:8::crbjava-17-openjdk-debuginfo, java-17-openjdk-fastdebug, java-17-openjdk-slowdebug and 21 more1:17.0.19.0.10-1.el8RHSA-2026:9686
Red Hatenterprise_linux:8::crbjava-21-openjdk-debuginfo, java-21-openjdk-fastdebug, java-21-openjdk-slowdebug and 21 more1:21.0.11.0.10-1.el8RHSA-2026:9689
Red Hatenterprise_linux:9::appstreamgiflib, giflib-debuginfo, giflib-debugsource and 1 more0:5.2.1-10.el9_8.2RHSA-2026:33501
Red Hatenterprise_linux:9::appstreamjava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 9 more1:1.8.0.492.b09-2.el9RHSA-2026:9683
Red Hatenterprise_linux:9::appstreamjava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.19.0.10-2.el9RHSA-2026:9686
Red Hatenterprise_linux:9::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.11.0.10-2.el9RHSA-2026:9689
29 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moregiflib5.2.2-150000.4.22.1SUSE-SU-2026:2666-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5giflib5.0.6-13.15.1SUSE-SU-2026:2667-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0giflib5.2.2-160000.4.1SUSE-SU-2026:22382-1
openSUSELeap 16.0giflib5.2.2-160000.4.1openSUSE-SU-2026:21076-1
openSUSETumbleweedgiflib5.2.2-4.1openSUSE-SU-2026:11117-1
AlmaLinux8giflib, giflib-devel5.1.4-5.el8_10ALSA-2026:33503
AlmaLinux8java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 17 more1:1.8.0.492.b09-1.el8ALSA-2026:9683
AlmaLinux8java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.19.0.10-1.el8ALSA-2026:9686
AlmaLinux8java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.11.0.10-1.el8ALSA-2026:9689
AlmaLinux9giflib, giflib-devel5.2.1-10.el9_8.2ALSA-2026:33501
AlmaLinux9java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 14 more1:1.8.0.492.b09-2.el9.alma.1ALSA-2026:9683
AlmaLinux9java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.19.0.10-2.el9.alma.1ALSA-2026:9686
AlmaLinux9java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.11.0.10-2.el9.alma.1ALSA-2026:9689
AlmaLinux9java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.3.0.9-1.el9.alma.1ALSA-2026:9693
AlmaLinux10giflib, giflib-devel5.2.1-25.el10_2ALSA-2026:33502
AlmaLinux10java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.11.0.10-2.el10_2.alma.1ALSA-2026:9689
AlmaLinux10java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.3.0.9-1.el10_2ALSA-2026:9693
Rocky Linux8giflib0:5.1.4-5.el8_10RLSA-2026:33503
Rocky Linux9giflib0:5.2.1-10.el9_8.2RLSA-2026:33501
Rocky Linux10giflib0:5.2.1-25.el10_2RLSA-2026:33502
Rocky Linux10java-25-openjdk1:25.0.3.0.9-1.el10_1RLSA-2026:9693
Alpinev3.21, v3.22, v3.23 and 1 moregiflib5.2.2-r2ALPINE-CVE-2026-26740
Alpaquita25, streamgiflib5.2.2-r3BELL-CVE-2026-26740

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The openjdk-headless packages do not include java.desktop, which is the only code that uses giflib. Therefore, headless-only environments are not affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OPENJDK ELS 11.0.31java-11-openjdk-portableFixed 2026-04-22RHSA-2026:9255
Red Hat Build of OpenJDK 17.0.9java-17-openjdk-portableFixed 2026-04-23RHSA-2026:9687
Red Hat Build of OpenJDK 21.0.11java-21-openjdk-portableFixed 2026-04-23RHSA-2026:9690
Red Hat Build of OpenJDK 25.0.3java-25-openjdk-portableFixed 2026-04-23RHSA-2026:9694
Red Hat Build of OpenJDK 8u492java-1.8.0-openjdk-portableFixed 2026-04-23RHSA-2026:9684
Red Hat Enterprise Linux 10java-21-openjdk-1:21.0.11.0.10-2.el10_2Fixed 2026-04-24RHSA-2026:9689
Red Hat Enterprise Linux 10java-25-openjdk-1:25.0.3.0.9-1.el10_2Fixed 2026-04-22RHSA-2026:9693
Red Hat Enterprise Linux 10giflib-0:5.2.1-25.el10_2Fixed 2026-06-30RHSA-2026:33502
Red Hat Enterprise Linux 10.0 Extended Update Supportgiflib-0:5.2.1-22.el10_0.2Fixed 2026-06-30RHSA-2026:33447
Red Hat Enterprise Linux 10.0 Extended Update Supportjava-21-openjdk-1:21.0.11.0.10-1.el10_2Fixed 2026-04-24RHSA-2026:9689
Red Hat Enterprise Linux 8giflib-0:5.1.4-5.el8_10Fixed 2026-06-30RHSA-2026:33503
Red Hat Enterprise Linux 8java-1.8.0-openjdk-1:1.8.0.492.b09-1.el8Fixed 2026-04-24RHSA-2026:9683
Red Hat Enterprise Linux 8java-17-openjdk-1:17.0.19.0.10-1.el8Fixed 2026-04-24RHSA-2026:9686
Red Hat Enterprise Linux 8java-21-openjdk-1:21.0.11.0.10-1.el8Fixed 2026-04-24RHSA-2026:9689
Red Hat Enterprise Linux 8.2 Advanced Update Supportjava-1.8.0-openjdk-1:1.8.0.492.b09-1.el8Fixed 2026-04-24RHSA-2026:9683
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgiflib-0:5.1.4-3.el8_4.2Fixed 2026-06-30RHSA-2026:33450
Red Hat build of OpenJDK 11 ELSjava-11-openjdkNot affected
Red Hat Enterprise Linux 6giflibWill not fix
Red Hat Enterprise Linux 7giflibNot affected
Red Hat Enterprise Linux 7java-1.8.0-openjdkNot affected
41 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-26740.

References

Check your stackJSON