CVE-2026-23868 Use after free in giflib
A double-free vulnerability in Giflib allows attackers to potentially 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-2026-23868?
CVE-2026-23868 is a medium-severity use after free vulnerability in giflib, published on 10 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Giflib contains a double-free vulnerability that is the result of a shallow copy in GifMakeSavedImage and incorrect error handling. The conditions needed to trigger this vulnerability are difficult but may be possible.
Which versions are affected by CVE-2026-23868?
It affects 1 product.
Linux distribution packages (40)
giflib AlmaLinux:10 | All versions | 5.2.1-22.el10_1.1 |
giflib AlmaLinux:10 | All versions | 5.2.1-24.el10_2 |
giflib-devel AlmaLinux:10 | All versions | 5.2.1-22.el10_1.1 |
giflib-devel AlmaLinux:10 | All versions | 5.2.1-24.el10_2 |
giflib AlmaLinux:8 | All versions | 5.1.4-4.el8_10 |
giflib-devel AlmaLinux:8 | All versions | 5.1.4-4.el8_10 |
giflib AlmaLinux:9 | All versions | 5.2.1-10.el9_8.1 |
giflib AlmaLinux:9 | All versions | 5.2.1-9.el9_7.1 |
giflib-devel AlmaLinux:9 | All versions | 5.2.1-10.el9_8.1 |
giflib-devel AlmaLinux:9 | All versions | 5.2.1-9.el9_7.1 |
giflib Red Hat:enterprise_linux:10.1 | All versions | 0:5.2.1-22.el10_1.1 |
giflib-debuginfo Red Hat:enterprise_linux:10.1 | All versions | 0:5.2.1-22.el10_1.1 |
giflib-debugsource Red Hat:enterprise_linux:10.1 | All versions | 0:5.2.1-22.el10_1.1 |
giflib-devel Red Hat:enterprise_linux:10.1 | All versions | 0:5.2.1-22.el10_1.1 |
giflib-utils-debuginfo Red Hat:enterprise_linux:10.1 | All versions | 0:5.2.1-22.el10_1.1 |
giflib Red Hat:enterprise_linux:10.2 | All versions | 0:5.2.1-24.el10_2 |
giflib-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 0:5.2.1-24.el10_2 |
giflib-debugsource Red Hat:enterprise_linux:10.2 | All versions | 0:5.2.1-24.el10_2 |
giflib-devel Red Hat:enterprise_linux:10.2 | All versions | 0:5.2.1-24.el10_2 |
giflib-utils-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 0:5.2.1-24.el10_2 |
giflib Red Hat:enterprise_linux:8::appstream | All versions | 0:5.1.4-4.el8_10 |
giflib-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:5.1.4-4.el8_10 |
giflib-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:5.1.4-4.el8_10 |
giflib-utils-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:5.1.4-4.el8_10 |
giflib-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:5.1.4-4.el8_10 |
giflib-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:5.1.4-4.el8_10 |
giflib-devel Red Hat:enterprise_linux:8::crb | All versions | 0:5.1.4-4.el8_10 |
giflib-utils-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:5.1.4-4.el8_10 |
giflib Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-10.el9_8.1 |
giflib Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-9.el9_7.1 |
giflib-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-10.el9_8.1 |
giflib-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-9.el9_7.1 |
giflib-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-10.el9_8.1 |
giflib-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-9.el9_7.1 |
giflib-utils-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-10.el9_8.1 |
giflib-utils-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:5.2.1-9.el9_7.1 |
giflib-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:5.2.1-10.el9_8.1 |
giflib-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:5.2.1-9.el9_7.1 |
giflib-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:5.2.1-10.el9_8.1 |
giflib-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:5.2.1-9.el9_7.1 |
Products include Giflib Project Giflib.
How do I fix CVE-2026-23868?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-23868 being exploited?
There is no known exploitation of CVE-2026-23868 in the wild and no public exploit code.
Other vulnerabilities in giflib
Sources
Also known as ALSA-2026:19154, ALSA-2026:19367, ALSA-2026:8858, ALSA-2026:8859, ALSA-2026:8861, AZL-79662 and 40 more.