All reports
Medium

libmng: libmng: Denial of Service via heap-based buffer overflow in mng_read_ordr()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-112008

Probability of exploitation in the next 30 days: 0.14%

FIRST EPSS · 2026-11-23

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.

A flaw was found in libmng. A heap-based buffer overflow vulnerability exists in the mng_read_ordr() function due to improper buffer allocation sizing when parsing chunk records in Multiple-image Network Graphics (MNG) files. An attacker could exploit this vulnerability by enticing a user or system to process a specially crafted MNG image. Successful exploitation allows an attacker to corrupt memory, causing an application crash and resulting in a Denial of Service (DoS).