CVE-2026-4985 dloebl CGIF GIF Image cgif.c cgif_addframe integer overflow

Medium 5.3 Published Updated

An integer overflow in the CGIF library allows remote attackers to cause a denial of service via crafted GIF image dimensions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-4985?

CVE-2026-4985 is a medium-severity vulnerability in dloebl CGIF, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-190, CWE-189

Which versions are affected by CVE-2026-4985?

How do I fix CVE-2026-4985?

Apply the vendor's patch.

Is CVE-2026-4985 being exploited?

There is no known exploitation of CVE-2026-4985 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-4985, GHSA-j9q5-hw2p-xmcf, UBUNTU-CVE-2026-4985.

Is CVE-2026-4985 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free