{"id":"CVE-2018-10677","details":"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.","modified":"2026-07-08T14:59:19.383082Z","published":"2018-05-02T19:29:00.230Z","references":[{"type":"FIX","url":"https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89"},{"type":"EVIDENCE","url":"https://github.com/miniupnp/ngiflib/issues/1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/miniupnp/ngiflib","events":[{"introduced":"cc64f7cc8fc20a945f2abd2ca771e8611f7e4128"},{"last_affected":"cc64f7cc8fc20a945f2abd2ca771e8611f7e4128"},{"fixed":"b588a2249c7abbfc52173e32ee11d6facef82f89"}],"database_specific":{"cpe":"cpe:2.3:a:miniupnp_project:ngiflib:0.4:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0.4"},{"last_affected":"0.4"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["0.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10677.json","vanir_signatures_modified":"2026-07-08T14:59:19Z","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"33508924308025978341435952235190963960","length":5096},"id":"CVE-2018-10677-2ca45ac9","signature_type":"Function","signature_version":"v1","source":"https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89","target":{"file":"ngiflib.c","function":"DecodeGifImg"}},{"id":"CVE-2018-10677-c1ba829a","signature_type":"Line","signature_version":"v1","source":"https://github.com/miniupnp/ngiflib/commit/b588a2249c7abbfc52173e32ee11d6facef82f89","target":{"file":"ngiflib.c"},"deprecated":false,"digest":{"line_hashes":["198165980739250519361350111986338815638","264020577666351890927509109311843218964","205485030750798813326074664223607360255"],"threshold":0.9}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}