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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-16894
GHSA-j9q5-hw2p-xmcf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB