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

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `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/E:X`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-02)
- Published: 2026-03-27T21:27:13.537Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-189, CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- dloebl CGIF: 0.5.0; 0.5.1; 0.5.2

## Every score

- VulDB: CVSS:4.0 5.3 Medium `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/E:X`
- VulDB: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:ND/RL:OF/RC:C`

## References

- <https://vuldb.com/?id.353874> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.353874> (permissions-required, signature)
- <https://vuldb.com/?submit.778278> (third-party-advisory)
- <https://github.com/dloebl/cgif/issues/110> (issue-tracking)
- <https://github.com/dloebl/cgif/pull/112> (issue-tracking, patch)
- <https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474> (patch)
- <https://github.com/dloebl/cgif/> (product)

## Sources

- CVE List: [CVE-2026-4985](https://www.cve.org/CVERecord?id=CVE-2026-4985), CVE Terms of Use, modified 2026-03-30
- NVD: [CVE-2026-4985](https://nvd.nist.gov/vuln/detail/CVE-2026-4985), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-4985 · Whole record: https://cve.day/CVE-2026-4985.json · Rebuilt by cve.day 2026-11-25T22:59:17.461Z
