Skip to content
Heist/ feed
Back to feed
Medium

cgif — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-4985

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.

Products
cgif
Affected versions
0.0.2-1, 0.0.3-1, 0.0.4-1, 0.2.0-1, 0.3.2-1, 0.3.2-1build1, 0.5.0-1, 0.5.0-1build1, 0.5.1-1, 0.5.3-1
Fixed versions
Not specified
CVEs
CVE-2026-4985
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:44 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-4985

core-osv · Original source

Published 27 Mar 2026, 22:16 UTC

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.

osv:UBUNTU-CVE-2026-4985

cgif

Fixed versions: Not specified

cgif

Fixed versions: Not specified

cgif

Fixed versions: Not specified

cgif

Fixed versions: Not specified

cgif

Fixed versions: Not specified

Complete source record
{
  "id": "b15ccb8b347263e5ea10604ef66c549bacfb16861feb1c8084abdbbc0eb8a5f4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-4985",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-4985",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-4985",
    "products": [
      {
        "name": {
          "value": "cgif",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.2.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cgif",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.3.2-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cgif",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cgif",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.5.3-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cgif",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.5.0-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.5.1-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-4985",
      "aliases": [
        "UBUNTU-CVE-2026-4985"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cgif",
            "purl": "pkg:deb/ubuntu/cgif?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.0.2-1",
            "0.0.3-1",
            "0.0.4-1",
            "0.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcgif0",
                "binary_version": "0.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cgif",
            "purl": "pkg:deb/ubuntu/cgif?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.3.2-1",
            "0.3.2-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcgif0",
                "binary_version": "0.3.2-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cgif",
            "purl": "pkg:deb/ubuntu/cgif?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcgif0",
                "binary_version": "0.5.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cgif",
            "purl": "pkg:deb/ubuntu/cgif?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.5.1-1",
            "0.5.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcgif0",
                "binary_version": "0.5.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cgif",
            "purl": "pkg:deb/ubuntu/cgif?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.5.0-1",
            "0.5.0-1build1",
            "0.5.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-4985.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcgif0",
                "binary_version": "0.5.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:57.979242628Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-4985"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-4985",
        "https://www.cve.org/CVERecord?id=CVE-2026-4985",
        "https://github.com/dloebl/cgif/issues/110",
        "https://github.com/dloebl/cgif/pull/112",
        "https://github.com/dloebl/cgif/",
        "https://github.com/dloebl/cgif/commit/b0ba830093f4317a5d1f345715d2fa3cd2dab474",
        "https://vuldb.com/?ctiid.353874",
        "https://vuldb.com/?id.353874",
        "https://vuldb.com/?submit.778278"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-4985",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 359191,
  "published_at": "2026-03-27T22:16:00+00:00"
}