Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-10677

The DecodeGifImg function in ngiflib.c in MiniUPnP ngiflib 0.4 lacks certain checks against width and height, which allows remote attackers to cause a denial of service (WritePixels heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted GIF file.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-10677
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:26 UTC · Revision 1

Source evidence

CVE-2018-10677

core-osv · Original source

Published 2 May 2018, 19:29 UTC

The DecodeGifImg function in ngiflib.c in MiniUPnP ngiflib 0.4 lacks certain checks against width and height, which allows remote attackers to cause a denial of service (WritePixels heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted GIF file.

osv:CVE-2018-10677
Complete source record
{
  "id": "f8e87dd993f7ad9483b3c6a2e6e4c8bb67561ba449c288790b96eca5b59874c9",
  "url": "https://osv.dev/vulnerability/CVE-2018-10677",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-10677",
    "summary": "The DecodeGifImg function in ngiflib.c in MiniUPnP ngiflib 0.4 lacks certain checks against width and height, which allows remote attackers to cause a denial of service (WritePixels heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted GIF file.",
    "evidence": "osv:CVE-2018-10677",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-10677",
      "aliases": [
        "CVE-2018-10677"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/miniupnp/ngiflib",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cc64f7cc8fc20a945f2abd2ca771e8611f7e4128"
                },
                {
                  "last_affected": "cc64f7cc8fc20a945f2abd2ca771e8611f7e4128"
                },
                {
                  "fixed": "b588a2249c7abbfc52173e32ee11d6facef82f89"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:miniupnp_project:ngiflib:0.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.4"
                      },
                      {
                        "last_affected": "0.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b588a2249c7abbfc52173e32ee11d6facef82f89"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10677.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-10677-2ca45ac9",
                "digest": {
                  "length": 5096,
                  "function_hash": "33508924308025978341435952235190963960"
                },
                "source": "https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89",
                "target": {
                  "file": "ngiflib.c",
                  "function": "DecodeGifImg"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-10677-c1ba829a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "198165980739250519361350111986338815638",
                    "264020577666351890927509109311843218964",
                    "205485030750798813326074664223607360255"
                  ]
                },
                "source": "https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89",
                "target": {
                  "file": "ngiflib.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:32:58Z"
          }
        }
      ],
      "modified": "2026-10-20T13:32:58.971534893Z",
      "provider": "osv",
      "references": [
        "https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89",
        "https://github.com/miniupnp/ngiflib/issues/1"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-10677",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387824,
  "published_at": "2018-05-02T19:29:00.23+00:00"
}