First published: Fri Jul 07 2017(Updated: )
Created <span class=""><a href="attachment.cgi?id=1295228&action=diff" name="attach_1295228" title="0001-comics-Remove-support-for-tar-and-tar-like-commands.patch">attachment 1295228</a> <a href="attachment.cgi?id=1295228&action=edit" title="0001-comics-Remove-support-for-tar-and-tar-like-commands.patch">[details]</a></span> 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 command_line = g_strdup_printf ("%s %s %s", comics_document->extract_command, quoted_archive, quoted_filename); 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 (<a href="https://bugzilla.gnome.org/show_bug.cgi?id=720742">https://bugzilla.gnome.org/show_bug.cgi?id=720742</a>).
Affected Software | Affected Version | How to fix |
---|---|---|
Evince | <3.24.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-1468488 is considered moderate, impacting usability while not compromising system security.
To fix REDHAT-BUG-1468488, you need to update GNOME Evince to a version later than 3.24.0.
REDHAT-BUG-1468488 specifically affects GNOME Evince version 3.24.0 and earlier.
The vulnerability in REDHAT-BUG-1468488 is related to the removal of support for certain tar and tar-like commands in GNOME Evince.
The bug REDHAT-BUG-1468488 was reported by contributors within the GNOME community.