Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. OpenMcdf
  4. ›
  5. CVE-2026-45785

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

May 19, 2026

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.

References

  • github.com/advisories/GHSA-5qwm-7pvp-w988
  • github.com/openmcdf/openmcdf/security/advisories/GHSA-5qwm-7pvp-w988
  • nvd.nist.gov/vuln/detail/CVE-2026-45785

Code Behaviors & Features

Detect and mitigate CVE-2026-45785 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.1.4

Fixed versions

  • 3.1.4

Solution

Upgrade to version 3.1.4 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

nuget/OpenMcdf/CVE-2026-45785.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:48 +0000.