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.
Published: 2026-10-18
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Heap Buffer Overflow (Memory Corruption)
Action: Update
AI Analysis

Impact

libmng versions up to 2.0.3 contain a heap-based buffer overflow in the mng_read_ordr function. The vulnerability arises because ORDR entry buffers are sized based on 5-byte on-wire records while the in-memory entries require 8 bytes. An attacker can supply a crafted MNG file containing a multi-record ORDR chunk, prompting the library to write data beyond the allocated buffer. This corrupts heap memory and results in a crash. The flaw is identified as CWE-131 and CWE-787.

Affected Systems

Linux, Windows, macOS, and any other platform where the libmng library version 2.0.3 or earlier is linked into an application. Applications that use the mng_read or mng_readdisplay APIs are susceptible, regardless of the application’s privilege level.

Risk and Exploitability

The CVSS base score is 6.9, indicating a moderate severity. EPSS data is unavailable, so the current exploitation probability is uncertain, but the vulnerability is listed as not part of CISA’s KEV catalog. The likely attack path requires an attacker to provide a malicious MNG file that an application will open, so the vector is typically the user or local execution of foreign data. Exploitation would result in memory corruption or denial of service. The flaw is identified as CWE-131 and CWE-787.

Generated by OpenCVE AI on October 19, 2026 at 02:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libmng to the latest release (2.0.4 or newer) which contains the buffer overflow fix.
  • If an upgrade is not immediately feasible, restrict processing of MNG files to trusted sources or disable the use of mng_read/mng_readdisplay in the application.
  • As a temporary mitigation, run the affected application with address space layout randomization enabled and compile libmng with stack-protection options to reduce the impact of any remaining memory corruption.

Generated by OpenCVE AI on October 19, 2026 at 02:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Libmng
Libmng libmng
Vendors & Products Libmng
Libmng libmng

Mon, 19 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Sun, 18 Oct 2026 11:45:00 +0000

Type Values Removed Values Added
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.
Title libmng through 2.0.3 Heap Buffer Overflow via ORDR Chunk Reader mng_read_ordr
Weaknesses CWE-131
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T19:04:44.302Z

Reserved: 2026-10-18T01:23:45.646Z

Link: CVE-2026-112008

cve-icon Vulnrichment

Updated: 2026-10-19T19:04:39.013Z

cve-icon NVD

Status : Deferred

Published: 2026-10-18T12:17:13.247

Modified: 2026-10-19T21:14:14.150

Link: CVE-2026-112008

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T11:38:31Z

Links: CVE-2026-112008 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T14:00:47Z

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-787

    Out-of-bounds Write