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.
{
"cwe_ids": [
"CWE-189",
"CWE-190"
],
"cna_assigner": "VulDB",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4985.json"
}{
"extracted_events": [
{
"introduced": "0.5.0"
},
{
"last_affected": "0.5.0"
},
{
"introduced": "0.5.1"
},
{
"last_affected": "0.5.1"
},
{
"introduced": "0.5.2"
},
{
"last_affected": "0.5.2"
}
],
"source": [
"AFFECTED_FIELD",
"REFERENCES"
]
}"2026-07-22T00:06:03Z"
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 4580.0,
"function_hash": "171136162460654712530482796871274633684"
},
"signature_version": "v1",
"source": "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474",
"id": "CVE-2026-4985-49fe09fd",
"target": {
"function": "cgif_addframe",
"file": "src/cgif.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"293867913414432174182311165443469586343",
"289721324328928541606126064462049485723",
"123221099516073638407936784006887341960",
"49113752948957356098600071949005746748",
"83292489927360328428365874813479561789",
"150802629640767370093492052631067446003",
"260213355676941278433434035868227134340",
"300149700293374886389481179831341764839"
]
},
"signature_version": "v1",
"source": "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474",
"id": "CVE-2026-4985-6792d045",
"target": {
"file": "src/cgif.c"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4985.json"