MATE Desktop Atril Document Viewer CBT File Parsing Argument Injection Remote Code Execution Vulnerability
Atril, the MATE document viewer, fails to validate a user-supplied string before passing it to a system call when parsing CBT files. An attacker could craft a malicious CBT file that, when opened, executes arbitrary code as the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of MATE Desktop Atril Document Viewer. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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 CBT parsing code builds a shell command from an unvalidated string taken from the file and executes it without sanitisation.
Impact
An attacker could execute arbitrary code with the privileges of the user who opens the malicious CBT file, but the victim must first open it or visit a malicious page.
What the attacker needed
Victim opens a malicious CBT file; user interaction required
The fix
The vulnerability was fixed in Atril version 1.26.2.
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.
A CBT file is a comic-book archive that the viewer unpacks and processes. The program takes a value from inside the file and hands it to the operating system as a command without checking it first, so a crafted file can make the computer run the attacker's commands. Opening the file is enough; the attacker does not need to be logged in to the victim's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.