Skip to main content

Cgif CVE-2026-4985

| EUVDEUVD-2026-16894 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-03-27 VulDB GHSA-j9q5-hw2p-xmcf
5.3
CVSS 4.0 · Vendor: VulDB
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS v4.0 score of 5.3 with vector AV:N/AC:L/PR:N/UI:P reflects a moderate threat with several mitigating factors. The vulnerability can be reached remotely with no authentication required, but requires user interaction (UI:P), meaning a victim must explicitly provide a malicious GIF file. The impact is limited to availability (VA:L, denial of service) with no confidentiality or integrity compromise. Attack complexity is low (AC:L). The EPSS score is not provided, but the combination of low attack complexity, network accessibility, and user-interaction requirement places this in a moderate real-world risk category. This is not a high-priority remote code execution vulnerability, but organizations using CGIF to process untrusted GIF images should prioritize patching to prevent potential denial-of-service conditions.

Exploit ScenarioDerived

An attacker crafts a malicious GIF file with specially crafted width and height values designed to trigger integer overflow in the cgif_addframe function. When a user or application processes this GIF file using a vulnerable version of CGIF, the integer overflow causes memory allocation to fail or buffer operations to behave unexpectedly, resulting in denial of service (crash or hang). No public exploit code has been identified beyond the issue discussion, but the vulnerability is straightforward to trigger once the parameter values are identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 27, 2026

Integer overflow in dloebl CGIF up to version 0.5.2 allows remote attackers to trigger availability impact via manipulation of width/height arguments in the cgif_addframe function. The vulnerability requires user interaction (UI:P) but can be exploited over the network with no authentication. A patch is available via upstream commit b0ba830093f4317a5d1f345715d2fa3cd2dab474.

RemediationAI

Upgrade dloebl CGIF to a version newer than 0.5.2 that includes the fix from commit b0ba830093f4317a5d1f345715d2fa3cd2dab474. The upstream patch is available at https://github.com/dloebl/cgif/pull/112 and the commit hash b0ba830093f4317a5d1f345715d2fa3cd2dab474. For users unable to immediately upgrade, implement input validation to reject GIF files with excessively large or suspicious width/height values. Applications that process GIFs should be configured to run with minimal privileges to limit the impact of a potential denial-of-service condition. Refer to https://github.com/dloebl/cgif/issues/110 for discussion of the vulnerability.

Affected VersionsENISA

CGIF 0.5.0
CGIF 0.5.1
CGIF 0.5.2

Affected Packages

euvd cgif no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the GIF image handler component of CGIF, specifically in the cgif_addframe function within src/cgif.c. The root cause is CWE-190 (Integer Overflow or Wraparound), which occurs when width and height parameters are not properly validated before being used in arithmetic operations or memory allocation calculations. When untrusted integer values overflow, they can cause unexpected behavior such as buffer overflows, memory corruption, or denial of service. CGIF is a library for creating animated GIF files, and the affected function is responsible for adding frames to animated GIFs. The CPE cpe:2.3:a:dloebl:cgif:*:*:*:*:*:*:*:* indicates all versions up to 0.5.2 are vulnerable.

Know when Cgif gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Mar 27, 2026 - 22:00 nvd
Patch available
CVE Published
Mar 27, 2026 - 21:27 nvd
MEDIUM 5.3

DescriptionCVE.org

A vulnerability was identified in dloebl CGIF up to 0.5.2. This vulnerability affects the function cgif_addframe of the file src/cgif.c of the component GIF Image Handler. The manipulation of the argument width/height leads to integer overflow. The attack may be initiated remotely. The identifier of the patch is b0ba830093f4317a5d1f345715d2fa3cd2dab474. It is suggested to install a patch to address this issue. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Executive ViewAI

Why It Matters

Organizations using dloebl CGIF should be aware of moderate risk from CVE-2026-4985, a integer overflow vulnerability rated CVSS 5.3. Exploitation could cause memory corruption or application crashes. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy