Ichitaro Office JTD Figure handling Code Execution Vulnerability
A heap-based buffer overflow exists in Ichitaro when parsing the Figure stream of a .jtd document, because the application trusts a calculated copy length that can exceed the allocated chunk size. An attacker could craft a malicious document to corrupt heap memory and potentially execute code in the context of the application.
Originally disclosed on Cisco Talos
A vulnerability was discovered within the Ichitaro word processor. Ichitaro is published by JustSystems and is considered one of the more popular word processors used within Japan.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code picks the smaller of two attacker-influenced length values without checking it against the actual allocated chunk size, so the copy overruns the heap buffer.
Impact
An attacker could corrupt heap memory and potentially achieve arbitrary code execution under the context of the application, though the user must open a crafted document.
What the attacker needed
Victim opens a crafted .jtd file; Ichitaro installed on Windows
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Ichitaro is a word processor that reads its own document format. When it loads a picture (a Figure) from a document, it reserves a fixed amount of memory but then copies in a length taken from the file, which can be bigger than the reserved space. That overflow can overwrite nearby memory and, in the worst case, let an attacker run their own code when the victim opens the file.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.