{"id":"CVE-2026-41511","aliases":["CVE-2026-41511","GHSA-jxpf-xq2m-q525"],"related":[],"kind":"vulnerability","state":"published","title":"OpenMcdf has an Infinite loop DoS via crafted CFB directory cycle","summary":"OpenMcdf is a fully .NET / C# library to manipulate Compound File Binary File Format files, also known as Structured Storage. Prior to version 3.1.3, 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. This issue has been patched in version 3.1.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenMcdf is a fully .NET / C# library to manipulate Compound File Binary File Format files, also known as Structured Storage. Prior to version 3.1.3, 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. This issue has been patched in version 3.1.3.","source":"cvelist"},{"lang":"en","text":"### Summary\nOpenMcdf 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`.\n\n### Details\nCFB 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.\n\nTwo distinct code paths are affected:\n\n- **`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.\n- **`Storage.OpenStream()`** - `DirectoryTree.TryGetDirectoryEntry` loops indefinitely inside `DirectoryEntries.TryGetSibling` during the name lookup.\n\n### PoC\nA crafted CFB file with a sibling cycle (see attached) triggers the issue with the following code:\n\n```csharp\nusing OpenMcdf;\n\nusing var ms = new MemoryStream(File.ReadAllBytes(\"crafted.cfb\"));\nusing var root = RootStorage.Open(ms);\n\n// Never returns - EnumerateEntries loops indefinitely\nforeach (var entry in root.EnumerateEntries())\n{\n    Console.WriteLine(entry.Name);\n\n    if (entry.Type == EntryType.Stream)\n        root.OpenStream(entry.Name); // also hangs depending on the cycle structure\n}\n```\n\n### Impact\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenMcdf es una biblioteca completamente .NET / C# para manipular archivos de formato binario compuesto, también conocido como Almacenamiento Estructurado. Antes de la versión 3.1.3, OpenMcdf no detecta ciclos en el árbol rojo-negro de entradas de directorio de un documento de archivo binario compuesto (CFB). Un archivo CFB manipulado con un ciclo en la cadena LeftSiblingID / RightSiblingID provoca que Storage.EnumerateEntries() y Storage.OpenStream() entren en un bucle indefinidamente, consumiendo el hilo de llamada sin posibilidad de recuperación mediante try/catch. Este problema ha sido parcheado en la versión 3.1.3.","source":"nvd"}],"published":"2026-04-22T22:09:01.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"version":"< 3.1.3","status":"affected"}],"vendor":"ironfede","product":"openmcdf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.3"}],"ecosystem":"NuGet","package":"OpenMcdf","purl":"pkg:nuget/OpenMcdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.3"}],"vendor":"openmcdf","product":"openmcdf","cpe":"cpe:2.3:a:openmcdf:openmcdf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openmcdf/openmcdf/security/advisories/GHSA-jxpf-xq2m-q525","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openmcdf/openmcdf/commit/24f445a557fc4f46461cf6d02d296cce16c293a0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openmcdf/openmcdf/releases/tag/v3.1.3","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41511","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openmcdf/openmcdf","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-11T18:45:00.791Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41511","url":"https://www.cve.org/CVERecord?id=CVE-2026-41511","licence":"CVE Terms of Use","modified":"2026-05-11T18:45:06.128Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jxpf-xq2m-q525","url":"https://github.com/advisories/GHSA-jxpf-xq2m-q525","licence":"CC-BY-4.0","modified":"2026-05-13T13:52:34.912Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41511","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41511","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.106Z","epss":{"score":0.00187,"percentile":0.08675,"date":"2026-12-01T12:00:22.000Z"}}