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.
Published: 2026-03-10
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Corruption with potential for arbitrary code execution
Action: Apply Patch
AI Analysis

Impact

Giflib contains a double‑free bug triggered by a shallow copy in GifMakeSavedImage combined with incorrect error handling. When this sequence occurs the same memory block is freed twice, corrupting the heap and potentially allowing an attacker to crash the application or execute arbitrary code if they can influence the contents of the freed memory. The CVE description notes that triggering this vulnerability is difficult, but the possibility remains.

Affected Systems

The flaw resides in the giflib library, which provides GIF image support. No specific product or version numbers are disclosed in the CVE, so any installation that contains the affected code path is potentially impacted.

Risk and Exploitability

The vulnerability has a CVSS score of 5.1, indicating a moderate risk. The EPSS score is below 1%, suggesting a very low probability of exploitation. It is not listed in the CISA Known Exploited Vulnerabilities catalog. Based on the description, the likely attack vector involves an application that can load crafted GIF files, and the conditions required to trigger the double‑free are difficult, so real‑world exploitation is considered unlikely at present.

Generated by OpenCVE AI on April 17, 2026 at 11:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade giflib to the latest release that incorporates the commit at https://sourceforge.net/p/giflib/code/ci/f5b7267aed3665ef025c13823e454170d031c106/tree/gifalloc.c?diff=5146815377b7395944cb683a08c43eee3f631eb7.
  • If an immediate update is not possible, run any applications that use giflib in a sandboxed environment and restrict the GIF files they can open to trusted sources only.
  • Consider replacing image‑processing software that depends on giflib with a newer version that includes the fix or with an alternative library that is not affected by this double‑free vulnerability.

Generated by OpenCVE AI on April 17, 2026 at 11:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 11 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 5.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Wed, 11 Mar 2026 12:15:00 +0000

Type Values Removed Values Added
Title giflib: Giflib: Double-free vulnerability leading to memory corruption
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important


Wed, 11 Mar 2026 12:00:00 +0000

Type Values Removed Values Added
First Time appeared Giflib
Giflib giflib
Vendors & Products Giflib
Giflib giflib

Tue, 10 Mar 2026 19:30:00 +0000

Type Values Removed Values Added
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.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Meta

Published:

Updated: 2026-03-11T15:44:58.572Z

Reserved: 2026-01-16T19:49:26.309Z

Link: CVE-2026-23868

cve-icon Vulnrichment

Updated: 2026-03-11T15:43:32.269Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-10T20:16:25.517

Modified: 2026-03-11T16:16:26.900

Link: CVE-2026-23868

cve-icon Redhat

Severity : Important

Publid Date: 2026-03-10T18:53:25Z

Links: CVE-2026-23868 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T11:45:06Z

Weaknesses