Numeric Errors Affecting cgif package, versions <0.5.3-1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.49% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-CGIF-15805171
  • published29 Mar 2026
  • disclosed27 Mar 2026

Introduced: 27 Mar 2026

CVE-2026-4985  (opens in a new tab)
CWE-189  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Debian:unstable cgif to version 0.5.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cgif package and not the cgif package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1