Skip to main content

OpenMcdf CVE-2026-41511

MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-04-22 https://github.com/openmcdf/openmcdf GHSA-jxpf-xq2m-q525
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Craft CFB file with sibling cycle
  2. Delivery
    Deliver to application (email, upload, file share)
  3. Exploit
    Application opens file with RootStorage.Open()
  4. Install
    Application calls EnumerateEntries() or OpenStream()
  5. C2
    DirectoryTreeEnumerator enters infinite loop
  6. Execute
    Thread hangs indefinitely
  7. Impact
    Application becomes unresponsive

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires three specific conditions: (1) the application must open a CFB file using OpenMcdf's RootStorage.Open() or equivalent API; (2) the CFB file must contain a cycle in the LeftSiblingID/RightSiblingID chain within its directory entry red-black tree; (3) the application must call Storage.EnumerateEntries() or Storage.OpenStream() on the opened storage or a child storage/stream. The cycle need not involve all entries-even a two-entry mutual reference is sufficient. Because the exploit is triggered by valid CFB format validation (magic header present, basic structure intact), no special configuration or feature flag is required. The default RootStorage.Open() behavior is vulnerable. The exploitation is not limited to specific CFB file versions or subtypes; any CFB file can be crafted with this cycle. Constraints: the attacker must deliver the file to the target application (no remote exploitation), and the application must actually call the vulnerable enumeration or lookup methods-opening the file alone is safe if the application never enumerates entries or opens streams by name.

Impact

This is a genuine local denial-of-service vulnerability with moderate real-world impact. CVSS 6.2 reflects the local attack vector (AV:L), low complexity (AC:L), and high availability impact (A:H), but no confidentiality or integrity impact. The attack vector constraint (AV:L) means a local attacker must deliver the crafted CFB file to a vulnerable application, either by social engineering (email attachment) or by compromising a file storage system. No authentication is required (PR:N, UI:N), and the scope is unchanged (S:U). The lack of EPSS score and KEV status in the provided data indicates this is not yet confirmed as actively exploited, but the public availability of a proof-of-concept CFB file and the fix commit suggests researcher disclosure through responsible channels. The absence of exception handling as a recovery mechanism (the thread hangs without throwing) is a critical difference from typical exceptions-this is more severe than code that crashes but allows process restart. Risk is elevated for applications that process user-supplied CFB files (document parsers, backup tools, forensic analyzers) without sandboxing. CVSS vector accuracy is confirmed by the description: local file input, no special privileges, no user interaction beyond opening a file.

Exploit ScenarioDerived

An attacker crafts a malicious CFB file containing a cycle in the directory entry sibling chain (e.g., two directory entries that point to each other via LeftSiblingID and RightSiblingID). The file includes a valid CFB magic header (D0 CF 11 E0 A1 B1 1A E1) to bypass initial format validation. The attacker sends this file to a user of an application built with vulnerable OpenMcdf (e.g., an email with a .doc-like attachment or a file uploaded to a document processing service). When the application calls Storage.EnumerateEntries() or Storage.OpenStream() on the crafted file, the DirectoryTreeEnumerator enters an infinite loop, yielding the same entry repeatedly and consuming CPU indefinitely until the entire process is killed by the OS or application owner.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 23, 2026

OpenMcdf fails to detect cycles in Compound File Binary (CFB) directory entry red-black trees, causing indefinite loops in Storage.EnumerateEntries() and Storage.OpenStream() when processing crafted CFB files with sibling ID cycles. This denial-of-service vulnerability consumes the calling thread permanently with no recovery path via exception handling, affecting any application opening untrusted CFB documents. Patch available in version 3.1.3.

RemediationAI

Upgrade OpenMcdf to version 3.1.3 or later. The patch (commit 24f445a557fc4f46461cf6d02d296cce16c293a0) adds cycle detection to DirectoryTreeEnumerator and DirectoryTree.TryGetDirectoryEntry by tracking visited node IDs during tree traversal, preventing infinite loops. For applications unable to upgrade immediately, implement a timeout wrapper around Storage.EnumerateEntries() and Storage.OpenStream() calls-wrap these methods with a cancellation token using Task.Run with a timeout (e.g., 5 seconds); if exceeded, abort the operation and log the malformed CFB file. This workaround has a trade-off: legitimate large CFB files with deep tree structures may trigger false timeouts if the timeout is too aggressive. Additionally, validate CFB file sources: reject CFB files from untrusted sources unless they have been scanned by a dedicated CFB parser validator (not a general antivirus, which may not detect malformed directory trees). Patch source: https://github.com/openmcdf/openmcdf/releases/tag/v3.1.3

Affected Packages

nuget openmcdf fix: 3.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in nuget

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

Technical ContextAI · show details

OpenMcdf is a .NET library for parsing Microsoft Compound File Binary (CFB) documents, a legacy container format used by Office 97-2003, OLE, and other Microsoft applications. CFB files organize directory entries as red-black trees with left and right sibling pointers (LeftSiblingID and RightSiblingID fields). The vulnerability exists in DirectoryTreeEnumerator and DirectoryTree.TryGetDirectoryEntry methods, which traverse this tree structure without maintaining a set of visited node IDs to detect cycles. When a crafted CFB file contains circular references (e.g., entry A's RightSiblingID points to B, and B's LeftSiblingID points back to A), the traversal enters an infinite loop. The root cause is CWE-835 (Loop with Unreachable Exit Condition), where the sibling-following logic assumes the tree is acyclic and will eventually reach a null terminator.

Know when the next one hits your stack

  • 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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 26, 2026 - 18:23 NVD
6.2 (MEDIUM) 5.5 (MEDIUM)
Patch released
Apr 22, 2026 - 22:31 nvd
Patch available
CVE Published
Apr 22, 2026 - 22:09 nvd
MEDIUM 6.2

DescriptionNVD

Summary

OpenMcdf does not detect cycles in the directory entry red-black tree of a Compound File Binary (CFB) document. A crafted CFB file with a cycle in the LeftSiblingID / RightSiblingID chain causes Storage.EnumerateEntries() and Storage.OpenStream() to loop indefinitely, consuming the calling thread with no possibility of recovery via try/catch.

Details

CFB directory entries form a red-black tree linked by LeftSiblingID and RightSiblingID fields. OpenMcdf's DirectoryTreeEnumerator and DirectoryTree.TryGetDirectoryEntry traverse this tree without tracking visited node IDs, so a crafted cycle (e.g. entry A's RightSiblingID points to entry B, and entry B's LeftSiblingID points back to entry A) causes traversal to loop indefinitely.

Two distinct code paths are affected:

  • Storage.EnumerateEntries() - DirectoryTreeEnumerator.MoveNext() never returns false; the same entry is yielded on every iteration and the caller's foreach never exits. Heap grows unboundedly as entries accumulate.
  • Storage.OpenStream() - DirectoryTree.TryGetDirectoryEntry loops indefinitely inside DirectoryEntries.TryGetSibling during the name lookup.

PoC

A crafted CFB file with a sibling cycle (see attached) triggers the issue with the following code:

csharp
using OpenMcdf;

using var ms = new MemoryStream(File.ReadAllBytes("crafted.cfb"));
using var root = RootStorage.Open(ms);

// Never returns - EnumerateEntries loops indefinitely
foreach (var entry in root.EnumerateEntries())
{
    Console.WriteLine(entry.Name);

    if (entry.Type == EntryType.Stream)
        root.OpenStream(entry.Name); // also hangs depending on the cycle structure
}

Impact

A denial of service affecting any application that opens untrusted CFB files with OpenMcdf. A small crafted input carrying a valid CFB magic header (D0 CF 11 E0 A1 B1 1A E1) is sufficient to pass initial format validation and reach the vulnerable traversal code. No exception is thrown, so try/catch cannot protect callers. The affected thread is unrecoverable without killing the process.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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 No
EPSS 0.0%
Patch available Yes
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

pkg:nuget/openmcdf

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