CVE-2026-4985dloebl CGIF GIF Image cgif.c cgif_addframe integer overflow
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cgif | Fix pending | UBUNTU-CVE-2026-4985 | |
| Ubuntu 26.04 | cgif | Under investigation | UBUNTU-CVE-2026-4985 | |
| Ubuntu 25.10 | cgif | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-4985 | |
| Ubuntu 24.04 | cgif | Under investigation | UBUNTU-CVE-2026-4985 | |
| Ubuntu 22.04 | cgif | Under investigation | UBUNTU-CVE-2026-4985 | |
| Debian 14 | cgif | Fixed | 0.5.3-1 | DEBIAN-CVE-2026-4985 |
| Debian 13 | cgif | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-4985 | |
| Debian 12 | cgif | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-4985 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- dloebl CGIF: affected: 0.5.0, 0.5.1, 0.5.2
Vendor advisories:
- https://github.com/dloebl/cgif/pull/112 (patch)
- https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474 (patch)
References
- https://vuldb.com/?id.353874
- https://vuldb.com/?ctiid.353874
- https://vuldb.com/?submit.778278
- https://github.com/dloebl/cgif/issues/110
- https://github.com/dloebl/cgif/pull/112
- https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474
- https://github.com/dloebl/cgif/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.