CVE-2026-4985

Source
https://cve.org/CVERecord?id=CVE-2026-4985
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4985.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-4985
Downstream
Published
2026-03-27T21:27:13.537Z
Modified
2026-07-22T00:06:03.952828Z
Severity
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
dloebl CGIF GIF Image cgif.c cgif_addframe integer overflow
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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/dloebl/cgif

Affected ranges

Type
GIT
Repo
https://github.com/dloebl/cgif
Events
Database specific
{
    "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"
    ]
}

Affected versions

0.*
0.5.0
0.5.1
0.5.2

Database specific

vanir_signatures_modified
"2026-07-22T00:06:03Z"
vanir_signatures
[
    {
        "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"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4985.json"