Skip to main content

libmng EUVDEUVD-2026-103461

| CVE-2026-112008 MEDIUM
Incorrect Calculation of Buffer Size (CWE-131)
2026-10-18 VulnCheck GHSA-xx2v-hjr6-76fh
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious MNG with multi-record ORDR chunk
  2. Delivery
    Deliver file to victim
  3. Exploit
    Victim opens file in libmng app
  4. Execution
    ORDR buffer sized by 5-byte records overflowed by 8-byte entries
  5. Impact
    Out-of-bounds heap write crashes application

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
Exploitation Conditions

Exploitation requires an application that links libmng version 2.0.3 or earlier and calls mng_read or mng_readdisplay on untrusted input, plus a victim action to open/process an attacker-crafted MNG file (UI:P) - there is no remote, zero-interaction path. The crafted file must specifically contain an MHDR header, a DHDR chunk, and a multi-record ORDR chunk so that the ORDR entry buffer, allocated based on 5-byte on-wire records, is overrun by the larger 8-byte in-memory entries. Limiting factors: the vector is local/file-based, user interaction is mandatory, and the target must actually route untrusted MNG data through the vulnerable code path; environments that do not process the obsolete MNG format or have upgraded past 2.0.3 are not exposed.

Impact

The input CVSS 4.0 base score is 6.9 (Medium) with vector AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H. The dominant impact is availability (VA:H) - a heap corruption that crashes the consuming application - with only low integrity impact (VI:L) and no confidentiality impact (VC:N); despite the CWE-131 buffer-size miscalculation, the provided data describes memory corruption and a crash, not confirmed arbitrary code execution. The vector is local (AV:L) and requires passive user interaction (UI:P), meaning a victim must open or process an attacker-supplied MNG file through an application that calls mng_read or mng_readdisplay - this is not remote, unauthenticated, network-reachable exploitation and is not automatable at scale. Publicly available exploit code exists (a hackmd write-up referenced by VulnCheck), which raises the practical likelihood of reliable crash reproduction, but there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active in-the-wild exploitation. EPSS is missing from the input and cannot be assessed; its absence is not evidence either way. Net assessment: a real but moderate-priority memory-safety bug - the public POC and clear root cause justify patching, but the local/user-interaction requirement and crash-dominant (rather than RCE-confirmed) impact keep this well below emergency priority.

Exploit ScenarioDerived

An attacker crafts a malicious MNG image containing MHDR, DHDR, and a multi-record ORDR chunk and delivers it to a victim (e.g., via email, web content, or a file share). When the victim opens the file in an application that uses libmng ≤2.0.3 and calls mng_read or mng_readdisplay, the undersized ORDR buffer is overwritten past its allocation, corrupting the heap and crashing the application. A public proof-of-concept write-up demonstrating the out-of-bounds write already exists.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 18, 2026

Heap-based buffer overflow in libmng through 2.0.3 allows a crafted MNG file containing MHDR, DHDR, and a multi-record ORDR chunk to overwrite heap memory when an application calls mng_read or mng_readdisplay, producing attacker-controlled out-of-bounds writes and likely application crashes. The attack is local/file-based and requires the victim to open or process the malicious MNG (UI:P), with no confidentiality impact and limited integrity impact but high availability impact. Publicly available exploit code exists; no confirmed active exploitation (CISA KEV) is indicated in the supplied data.

RemediationAI

No vendor-released patch identified at time of analysis; the supplied references point to the SourceForge libmng project and the 2.0.3 release, not to a fixed version. Track the project and the VulnCheck advisory for a patched libmng release and upgrade as soon as one is published. Until then, avoid opening or processing untrusted MNG files: disable MNG decoding or remove libmng support in applications that do not require it (breaks MNG display functionality), and block or quarantine MNG attachments/uploads at ingress (may affect legitimate image workflows). Where MNG processing is unavoidable, run the decoder in a sandbox or low-privilege process and restrict access to applications that call mng_read or mng_readdisplay on user-supplied files; these measures reduce exposure but do not correct the undersized ORDR allocation.

Affected VersionsENISA

libmng 0 ≤2.0.3

Affected Packages

euvd libmng no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libmng is a library for decoding and displaying MNG (Multiple-image Network Graphics) files. The flaw is in mng_read_ordr(), the ORDR chunk reader: ORDR records are serialized on the wire with a 5-byte record size, but the library's in-memory representation uses 8-byte entries, so the allocation is calculated from the smaller on-wire size and a multi-record ORDR chunk causes an undersized heap allocation. This is CWE-131 (Incorrect Calculation of Buffer Size), and the resulting heap overflow lets attacker-controlled bytes be written past the buffer. Reaching the vulnerable path requires a crafted file with MHDR, DHDR, and ORDR chunks processed by an application using mng_read or mng_readdisplay. CPE data identifies libmng itself as the affected component, with affected versions through 2.0.3.

Know when Libmng gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.1 MEDIUM

File must be opened locally by a victim, so AV:L and UI:R with PR:N; impact is crash-driven (A:H) with minor heap-corruption integrity effect (I:L) and no confidentiality loss.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

Prevalence
Low
niche, largely legacy MNG image library with limited modern adoption
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS N/A
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy