{"id":"UBUNTU-CVE-2026-4985","details":"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.","modified":"2026-05-20T16:26:38.033987757Z","published":"2026-03-27T22:16:00Z","upstream":["CVE-2026-4985"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-4985"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-4985"},{"type":"REPORT","url":"https://github.com/dloebl/cgif/issues/110"},{"type":"REPORT","url":"https://github.com/dloebl/cgif/pull/112"},{"type":"REPORT","url":"https://github.com/dloebl/cgif/"},{"type":"REPORT","url":"https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.353874"},{"type":"REPORT","url":"https://vuldb.com/?id.353874"},{"type":"REPORT","url":"https://vuldb.com/?submit.778278"}],"affected":[{"package":{"name":"cgif","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cgif?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0.2-1","0.0.3-1","0.0.4-1","0.2.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcgif0","binary_version":"0.2.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"}},{"package":{"name":"cgif","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cgif?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.2-1","0.3.2-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.3.2-1build1","binary_name":"libcgif0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"}},{"package":{"name":"cgif","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/cgif?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.5.0-1","binary_name":"libcgif0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"}},{"package":{"name":"cgif","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cgif?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.0-1","0.5.0-1build1","0.5.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcgif0","binary_version":"0.5.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}