CVE-2026-138300 in CherryTreeinfo

Summary

by MITRE • 11/28/2026

CherryTree through 1.7.3 contains a denial of service vulnerability that allows attackers to crash the application through uncaught std::stoi/std::stoll exceptions on malformed XML attributes. Attackers can craft a document with non-numeric or out-of-range char_offset, frame_width, frame_height, col_max, or time attributes to repeatedly crash CherryTree and block access to content.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in CherryTree versions up to 1.7.3 represents a classic denial of service condition stemming from insufficient input validation within the application's XML parsing logic. As an open-source hierarchical note-taking tool, CherryTree relies on structured data formats for document storage and retrieval. The specific flaw resides in how the software processes certain numeric attributes embedded within its internal XML structure. When the parser encounters these attributes, it attempts to convert string representations into integer values using standard C++ library functions such as std::stoi or std::stoll. These conversion routines are designed to throw exceptions when they encounter input that cannot be interpreted as a valid number or falls outside the acceptable range for the target data type. However, in this specific implementation, these potential exception points were not wrapped in appropriate try-catch blocks, leading to an unhandled exception scenario.

From a technical perspective, the root cause is categorized under CWE-754: Improper Check for Unusual or Unexpected Input Conditions. The application fails to validate that the attributes char_offset, frame_width, frame_height, col_max, and time contain strictly numeric values within expected bounds before attempting conversion. An attacker can exploit this by crafting a malicious CherryTree document file where these specific XML attributes are populated with non-numeric characters, such as alphabetic strings or special symbols, or with integer values that exceed the maximum limit for signed 32-bit integers. When the application attempts to load or render this malformed content, the parsing engine triggers an exception during the type conversion process. Because the error is not caught locally within the function handling the attribute, it propagates up the call stack until it reaches a top-level handler that terminates the program execution abruptly.

The operational impact of this vulnerability is significant for users who rely on CherryTree for critical note-taking or data organization tasks. A successful exploitation results in an immediate and ungraceful crash of the application process. This denial of service prevents access to any open documents, potentially leading to loss of unsaved work if auto-save mechanisms are not configured correctly or have already failed. Furthermore, because the vulnerability is triggered by opening a specific file, it can be weaponized as part of a phishing campaign where an attacker sends a malicious CherryTree document via email or shared storage. The recipient may inadvertently open the file while browsing their notes, causing the application to crash and disrupting productivity without any indication that a security incident has occurred.

This behavior aligns with ATT&CK technique T1499: Endpoint Denial of Service, specifically under sub-techniques involving resource exhaustion or software crashes through malformed input. The vulnerability highlights the importance of defensive programming practices in desktop applications that handle user-generated content. To mitigate this risk, developers must implement robust exception handling around all external data parsing operations. Specifically, any call to std::stoi or std::stoll should be enclosed within a try block with corresponding catch handlers for std::invalid_argument and std::out_of_range exceptions. Within these handlers, the application should log the error gracefully and either discard the malformed attribute or replace it with a default safe value rather than terminating the entire process. Additionally, input validation routines should verify that numeric strings contain only digits before conversion attempts are made, providing an extra layer of defense against malformed inputs.

Responsible

VulnCheck

Reservation

11/28/2026

Disclosure

11/28/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!