{"id":"CVE-2026-112008","kind":"vulnerability","aliases":["CVE-2026-112008"],"related":[],"title":"libmng: crafted MNG file overflows heap and crashes the reader","description":"libmng through 2.0.3 contains a heap-based buffer overflow vulnerability in mng_read_ordr() that allows attackers to corrupt heap memory because ORDR entry buffers are sized by 5-byte on-wire records instead of 8-byte in-memory entries. Attackers can supply a crafted MNG file with MHDR, DHDR and a multi-record ORDR chunk to applications calling mng_read or mng_readdisplay, writing attacker-controlled data past the allocation and crashing the application.","summary":"libmng, the library that decodes MNG animation files, sizes its ORDR entry buffer from 5-byte on-wire records but stores 8-byte entries in memory. A crafted MNG file makes it write attacker-controlled data past the allocation, which crashes the application and may allow more.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","image-processing","libmng","package"],"not_affected_if":["no-mng-decoding"],"how_to_check":"- Check whether an application links libmng by looking for `libmng` in its dependency list or `ldd` output.\n- Run `mng-config --version` or check the installed package version against `2.0.3`.","fix":null,"status":"open","published_at":"2026-10-18T12:17:13+00:00","first_seen_at":"2026-10-23T21:57:15+00:00","triaged_at":"2026-10-25T03:41:02+00:00","updated_at":"2026-10-25T03:41:02+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-25T03:41:02Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"unknown","title":"libmng: crafted MNG file overflows heap and crashes the reader","impact":"medium","summary":"libmng, the library that decodes MNG animation files, sizes its ORDR entry buffer from 5-byte on-wire records but stores 8-byte entries in memory. A crafted MNG file makes it write attacker-controlled data past the allocation, which crashes the application and may allow more.","category":"package","nicknames":[],"who_cares":["libmng","image-processing","c"],"confidence":0.6,"needs_auth":"no","worst_case":"Attacker-controlled data overwrites heap memory, crashing the application.","analyst_note":"Confirm the fixed libmng version and whether code execution beyond a crash is possible; the NVD entry is the only source.","how_to_check":"- Check whether an application links libmng by looking for `libmng` in its dependency list or `ldd` output.\n- Run `mng-config --version` or check the installed package version against `2.0.3`.","needs_analyst":true,"not_affected_if":["no-mng-decoding"],"who_is_affected":"Applications that call mng_read or mng_readdisplay on MNG files, including any service that accepts user-uploaded images. Systems that never decode MNG files are not exposed through this path.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000582,"input_tokens":3399,"output_tokens":485,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-112008':13A,16A '-2026':12A,15A '2.0.3':73C '5':37B,100C '8':45B,108C 'alloc':63B,146C 'allow':70B,87C 'anim':29B 'applic':67B,132C,150C 'attack':58B,88C,114C,141C 'attacker-control':57B,140C 'base':78C 'buffer':35B,79C,96C 'byte':38B,46B,101C,109C 'c':17B 'call':133C 'chunk':130C 'contain':74C 'control':59B,142C 'corrupt':90C 'craft':2A,51B,118C 'crash':8A,65B,148C 'cve':11A,14A 'data':60B,143C 'decod':27B 'dhdr':123C 'entri':34B,47B,95C,113C 'file':4A,30B,53B,120C 'heap':6A,77C,91C 'heap-bas':76C 'imag':19B 'image-process':18B 'in-memori':110C 'instead':106C 'libmng':1A,21B,23B,71C 'librari':25B 'make':54B 'may':69B 'memori':49B,92C,112C 'mhdr':122C 'mng':3A,28B,52B,83C,119C,134C,137C 'multi':127C 'multi-record':126C 'on-wir':39B,102C 'ordr':33B,85C,94C,129C 'overflow':5A,80C 'packag':22B 'past':61B,144C 'process':20B 'read':84C,135C 'readdisplay':138C 'reader':10A 'record':42B,105C,128C 'size':31B,98C 'store':44B 'suppli':116C 'vulner':81C 'wire':41B,104C 'write':56B,139C","nicknames":[],"mitigations":[],"who_affected":"Applications that call mng_read or mng_readdisplay on MNG files, including any service that accepts user-uploaded images. Systems that never decode MNG files are not exposed through this path.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-18T12:17:13+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-112008","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112008","severity":null,"published_at":"2026-10-18T12:17:13+00:00","modified_at":"2026-10-19T21:14:14+00:00","first_seen_at":"2026-10-23T21:57:15+00:00","fetched_at":"2026-10-23T22:28:55+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}