Description
CherryTree through 1.7.2 contains a path traversal vulnerability in CtStorageXmlHelper::_create_image_from_xml that trusts unvalidated embedded-file 'filename' attributes in XML documents. Attackers can craft a .ctd, .ctz, or .ctx document with an absolute or ~/ filename and no data, so saving embeds files like ~/.ssh/id_rsa into the document.
References6
- github.com/giuspen/cherrytree
- github.com/giuspen/cherrytree/blob/v1.7.2/src/ct/ct_image.cc#L7…
- github.com/giuspen/cherrytree/blob/v1.7.2/src/ct/ct_storage_xml…
- github.com/giuspen/cherrytree/issues/2944
- www.vulncheck.com/advisories/cherrytree-through-1.7.2-local-fil…
- github.com/giuspen/cherrytree/issues/2944
Metrics
- CVSS 3.1
-
4.7
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N - CVSS 4.0
-
5.6
MEDIUM
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 3 · as of 4 November 2026
- CWE
- CWE-36
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.