CVE-2017-1000083: Command Injection

Published Jul 7, 2017
·
Updated

backend/comics/comics-document.c (aka the comic book backend) in GNOME Evince before 3.24.1 allows remote attackers to execute arbitrary commands via a .cbt file that is a TAR archive containing a filename beginning with a "--" command-line option substring, as demonstrated by a --checkpoint-action=exec=bash at the beginning of the filename.

Other sources

Created attachment 1295228 [details] 0001-comics-Remove-support-for-tar-and-tar-like-commands.patch

From the folks at Project Zero:

""" Hi,

The comic book backend in evince 3.24.0 is vulnerable to a command injection bug that can be used to execute arbitrary commands when a cbt file is opened:

cbt files are simple tar archives containing images. When a cbt file is processed, evince calls "tar -xOf $archive $filename" for every image file in the archive:

// backend/comics/comics-document.c: 914 commandline = gstrdupprintf ("%s %s %s", comicsdocument->extractcommand, quotedarchive, quotedfilename);

While both the archive name and the filename are quoted to not be interpreted by the shell, the filename is completely attacker controlled an can start with "--" which leads to tar interpreting it as a command line flag.

This can be exploited by creating a tar archive with an embedded file named [...]

Please credit Felix Wilhelm from the Google Security Team in all releases, patches and advisories related to this issue.

Best, Felix """

All current versions of evince in Fedora and RHEL are vulnerable.

The attached patch will be applied to all versions of Fedora except Fedora 26 and rawhide for which we will use a backport of the comics archive handling rework (https://bugzilla.gnome.org/showbug.cgi?id=720742).

Red Hat

Affected Software

16 affected components
Gnome Evince<=3.24.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server=7.4
redhat Enterprise Linux Server=7.5
redhat Enterprise Linux Server=7.6
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.4
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0

Event History

Jul 7, 2017
Data Sourced
via Red Hat·08:54 AM
DescriptionSeverityAffected Software
Sep 5, 2017
CVE Published
via MITRE·06:00 AM
Data Sourced
via MITRE·06:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2017-1000083?

CVE-2017-1000083 is rated as high severity due to its ability to allow remote code execution.

2

How do I fix CVE-2017-1000083?

To fix CVE-2017-1000083, update GNOME Evince to version 3.24.1 or later.

3

What software is affected by CVE-2017-1000083?

CVE-2017-1000083 affects GNOME Evince versions prior to 3.24.1 and several versions of Debian and Red Hat Enterprise Linux.

4

Can CVE-2017-1000083 be exploited remotely?

Yes, CVE-2017-1000083 can be exploited remotely through specially crafted .cbt files.

5

What type of vulnerability is CVE-2017-1000083?

CVE-2017-1000083 is a remote code execution vulnerability that affects GNOME Evince.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203