Skip to content
RCE Advisory Intermediate

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.

Febin Mon Saji Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

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.

Febin Mon Saji, on the Zero Day Initiative

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.

More by Febin Mon Saji

View all

4 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.