# CVE-2026-45785: OpenMcdf: Uncatchable infinite loop in DirectoryTree.TryGetDirectoryEntry on crafted CFB directory cycle

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T19:50:57.000Z
- Modified: 2026-07-23T18:12:34.153Z
- Also known as: GHSA-5qwm-7pvp-w988
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OpenMcdf is a fully .NET / C# library to manipulate Compound File Binary File Format files, also known as Structured Storage. In 3.1.3 and earlier, the BST name-lookup loop in DirectoryTree.TryGetDirectoryEntry (OpenMcdf/DirectoryTree.cs:35-46) walks directory entries by repeatedly calling directories.TryGetSibling(child, siblingType, validateColor). A crafted CFB file with cyclic Left/Right sibling links among directory entries, constructed so the per-step BST-order check in TryGetSibling (DirectoryEntries.cs:84-85) is satisfied at every step, drives this while (child is not null) loop forever. There is no cycle detection in TryGetDirectoryEntry, and the bug is reachable from RootStorage.OpenStorage(name), TryOpenStorage(name), OpenStream(name), and TryOpenStream(name), causing an unrecoverable denial of service. This issue is fixed in version 3.1.4.

(As written by CVE List.)

## Affected

- openmcdf openmcdf: < 3.1.4
- OpenMcdf (NuGet): before 3.1.4

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/openmcdf/openmcdf/security/advisories/GHSA-5qwm-7pvp-w988> (exploit, web)
- <https://github.com/openmcdf/openmcdf/commit/c6f82db722bd85db7b0caed3ca1aa374f1e07bc7>
- <https://github.com/openmcdf/openmcdf/releases/tag/v3.1.4>
- <https://github.com/openmcdf/openmcdf> (package)

## Sources

- CVE List: [CVE-2026-45785](https://www.cve.org/CVERecord?id=CVE-2026-45785), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-5qwm-7pvp-w988](https://github.com/advisories/GHSA-5qwm-7pvp-w988), CC-BY-4.0, modified 2026-05-19
- NVD: [CVE-2026-45785](https://nvd.nist.gov/vuln/detail/CVE-2026-45785), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-45785 · Whole record: https://cve.day/CVE-2026-45785.json · Rebuilt by cve.day 2026-11-25T22:59:28.567Z
