OpenMcdf has an Infinite loop DoS via crafted CFB directory cycle
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 returnsfalse; the same entry is yielded on every iteration and the caller'sforeachnever exits. Heap grows unboundedly as entries accumulate.Storage.OpenStream()-DirectoryTree.TryGetDirectoryEntryloops indefinitely insideDirectoryEntries.TryGetSiblingduring the name lookup.
PoC
A crafted CFB file with a sibling cycle (see attached) triggers the issue with the following code:
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.
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| .NET (NuGet) | OpenMcdf | < 3.1.3 | 3.1.3 |
Odnośniki
- https://github.com/openmcdf/openmcdf/security/advisories/GHSA-jxpf-xq2m-q525
- https://nvd.nist.gov/vuln/detail/CVE-2026-41511
- https://github.com/openmcdf/openmcdf/commit/24f445a557fc4f46461cf6d02d296cce16c293a0
- https://github.com/openmcdf/openmcdf
- https://github.com/openmcdf/openmcdf/releases/tag/v3.1.3
- Wektor CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Słabość (CWE)
CWE-835- Platforma
- .NET (NuGet)
- Paczka
OpenMcdf- Ujawniono
- 22.04.2026
- Aktualizacja
- 11.10.2026 11:23
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-jxpf-xq2m-q525 - CC BY 4.0
Historia podatności: OpenMcdf
Wszystkie opisane podatności tej paczki (.NET (NuGet)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 2
- Pierwsza → ostatnia
- 04.2026 05.2026
- Bez poprawki
- 0
- Wykorzystywana w atakach
- 0
Rozkład istotności
- Średnia 2
Ujawnienia w latach
- 2026: 2
-
OpenMcdf has an Infinite loop DoS via crafted CFB directory cycle ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.