CVE-2026-4985 Details
Description
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.
A vulnerability allowing for integer overflow has been identified in the dloebl CGIF library, specifically in versions 0.4.0 through 0.5.2. The issue arises in the GIF Image Handler component, within the 'cgif_addframe' function of 'src/cgif.c'. The vulnerability is triggered by manipulating the width and height arguments, leading to an integer overflow. This flaw can be exploited remotely, causing frames in a GIF animation to be incorrectly processed, potentially resulting in missing frames or data corruption.
Users are advised to update to the latest version of the cgif library, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 27, 2026CISA-ADP
Assessed Mar 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/dloebl/cgif/ | [email protected] | Source CodeVendor |
| https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474 | [email protected] | Source CodeVendor |
| https://github.com/dloebl/cgif/issues/110 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/dloebl/cgif/pull/112 | [email protected] | Issue TrackingVendor |
| https://vuldb.com/?ctiid.353874 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/?id.353874 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/?submit.778278 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-189 | Numeric Errors | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dloebl CGIF | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 27, 2026 | CVE Modified | [email protected] |
| Mar 27, 2026 | New CVE Received | [email protected] |
Volerion