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:13Z
Modified
2026-08-12T16:25:36Z
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
{
    "cna_assigner":  "VulDB",
    "cwe_ids":  [
        "CWE-189",
        "CWE-190"
    ],
    "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
Show details
{
    "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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4985.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "171136162460654712530482796871274633684",
            "length":  4580
        },
        "id":  "CVE-2026-4985-49fe09fd",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474",
        "target":  {
            "file":  "src/cgif.c",
            "function":  "cgif_addframe"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "293867913414432174182311165443469586343",
                "289721324328928541606126064462049485723",
                "123221099516073638407936784006887341960",
                "49113752948957356098600071949005746748",
                "83292489927360328428365874813479561789",
                "150802629640767370093492052631067446003",
                "260213355676941278433434035868227134340",
                "300149700293374886389481179831341764839"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-4985-6792d045",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474",
        "target":  {
            "file":  "src/cgif.c"
        }
    }
]
vanir_signatures_modified
"2026-08-12T16:25:36Z"