CVE-2026-138299: CherryTree through 1.7.3 Local File Read via LaTeX Filter Bypass
CherryTree through 1.7.3 contains a LaTeX rendering filter bypass vulnerability in islatextextsafe() that allows attackers to read local files by building blocked command names with TeX macro expansion. Attackers can craft a document with a LaTeX node using \csname verbatiminput\endcsname to render user-readable files into the embedded note image when opened.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of CherryTree through 1.7.3 are exposed when they open an attacker-crafted document containing a LaTeX node. The attacker’s content can cause local file contents to be rendered into an embedded note image.
What interaction does exploitation require?
An attacker must craft a document with a LaTeX node and persuade a user to open it. The CVSS vector indicates local access, high attack complexity, no privileges required, and user interaction is required.
How does the filter bypass work?
The vulnerable _is_latex_text_safe() filter can be bypassed by constructing blocked command names through TeX macro expansion. The described example uses \csname verbatiminput\endcsname.