{
  "affected": [
    {
      "ranges": [
        {
          "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"
            ]
          },
          "events": [
            {
              "introduced": "2bcdaea1b134ff31acc893d2e5920e68c411d59b"
            },
            {
              "fixed": "b0ba830093f4317a5d1f345715d2fa3cd2dab474"
            }
          ],
          "repo": "https://github.com/dloebl/cgif",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.5.0",
        "0.5.1",
        "0.5.2"
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-4985",
  "modified": "2026-07-15T01:49:16.088077332Z",
  "published": "2026-03-27T21:27:13.537Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/dloebl/cgif/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4985.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-4985"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/?id.353874"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/?submit.778278"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/dloebl/cgif/issues/110"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/?ctiid.353874"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dloebl/cgif/pull/112"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "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/E:X",
      "type": "CVSS_V4"
    }
  ],
  "summary": "dloebl CGIF GIF Image cgif.c cgif_addframe integer overflow"
}