Skip to main content
Vulnerability Database/CVE-2026-104982

CVE-2026-104982: Linux Mint Xreader Path Traversal Flaw

CVE-2026-104982 is a path traversal vulnerability in Linux Mint Xreader affecting EPUB file handling that enables remote exploitation. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104982 Overview

CVE-2026-104982 is a path traversal vulnerability [CWE-22] in Linux Mint Xreader versions up to 4.6.5. The flaw resides in the setup_document_content_list function and its use of g_strdup_printf within backend/epub/epub-document.c. The EPUB File Handler component fails to sanitize file paths extracted from EPUB archives, allowing crafted archive entries to resolve outside the intended extraction directory. Exploitation requires a user to open a malicious EPUB file. A public exploit has been published. Project maintainers have removed EPUB support from Xreader and reimplemented it in a separate Xepub project. Version 4.6.6 addresses the issue via commit a5aecea074e8564b7a22f1ce054b31ec862974b7.

Critical Impact

A remote attacker can deliver a malicious EPUB file that writes or reads files outside the intended directory when opened in a vulnerable Xreader installation.

Affected Products

  • Linux Mint Xreader versions up to and including 4.6.5
  • EPUB File Handler component (backend/epub/epub-document.c)
  • Fixed in Xreader 4.6.6

Discovery Timeline

  • 2026-10-03 - CVE-2026-104982 published to the National Vulnerability Database
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-104982

Vulnerability Analysis

The vulnerability resides in the EPUB backend of Xreader, a document viewer maintained by the Linux Mint project. An EPUB file is a ZIP archive containing HTML, metadata, and resource files referenced by a content list. When Xreader opens an EPUB, setup_document_content_list iterates over entries and constructs filesystem paths with g_strdup_printf. The function concatenates a base extraction directory with filenames taken directly from the archive without normalizing ../ sequences or absolute paths. An attacker who crafts an EPUB whose entries contain traversal sequences can cause Xreader to read or write files outside the designated temporary directory.

Root Cause

The root cause is missing input validation on archive member names before path construction. g_strdup_printf performs string formatting but offers no path-safety guarantees. Because the EPUB specification allows arbitrary relative paths inside the archive, the backend must canonicalize and verify that each resolved path remains inside the extraction root. Xreader omitted this check in all releases up to 4.6.5.

Attack Vector

Exploitation requires user interaction: a victim must open a malicious EPUB file in Xreader. The file can be delivered through email, websites, chat applications, or any channel that transfers documents. The attack is remote in origin but executes with the privileges of the local user running Xreader. The impact is limited to confidentiality of files accessible to that user, which aligns with the low severity rating.

c
// Patch excerpt: backend/epub/epub-document.h removed entirely
-#ifndef __EPUB_DOCUMENT_H__
-#define __EPUB_DOCUMENT_H__
-
-#define _GNU_SOURCE
-#include "ev-document.h"
-
-G_BEGIN_DECLS
-
-#define EPUB_TYPE_DOCUMENT             (epub_document_get_type ())
-#define EPUB_DOCUMENT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPUB_TYPE_DOCUMENT, EpubDocument))
-#define EPUB_IS_DOCUMENT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPUB_TYPE_DOCUMENT))
-
-typedef struct _EpubDocument EpubDocument;
-
-GType                 epub_document_get_type (void) G_GNUC_CONST;
-
-G_MODULE_EXPORT GType register_xreader_backend  (GTypeModule *module); 
-     
-G_END_DECLS
-
-#endif /* __EPUB_DOCUMENT_H__ */

Source: GitHub Commit a5aecea. The maintainers removed the entire EPUB backend rather than patching the parser inline. The MIME registration file backend/epub/epubdocument.xreader-backend.in was also removed, which deregisters application/epub+zip from Xreader.

Detection Methods for CVE-2026-104982

Indicators of Compromise

  • Unexpected files appearing in user home directories or configuration paths after a user opens an EPUB document in Xreader
  • Xreader process accessing paths outside its temporary extraction directory (typically under /tmp)
  • EPUB archives containing entry names with ../ sequences or absolute paths starting with /

Detection Strategies

  • Inspect EPUB files statically by listing archive contents and flagging any entry whose normalized path escapes the archive root
  • Monitor Xreader child processes and file write operations with Linux audit rules targeting the user's home directory
  • Alert on package versions below Xreader 4.6.6 reported by endpoint inventory scans

Monitoring Recommendations

  • Enable auditd rules on paths such as ~/.config, ~/.ssh, and ~/.local to catch writes correlated with Xreader execution
  • Collect process and file telemetry from Linux endpoints into a centralized data lake for retrospective hunting on EPUB handling
  • Track installed package versions of xreader across the fleet and generate alerts when hosts remain on 4.6.5 or earlier

How to Mitigate CVE-2026-104982

Immediate Actions Required

  • Upgrade Xreader to version 4.6.6 or later on all Linux Mint systems
  • Avoid opening EPUB files from untrusted sources in Xreader until the upgrade is applied
  • Reassign the default handler for application/epub+zip to a dedicated, patched EPUB reader such as Xepub

Patch Information

The upstream fix is commit a5aecea074e8564b7a22f1ce054b31ec862974b7, which removes the vulnerable EPUB backend from Xreader. The fix ships in the Xreader 4.6.6 release. Discussion of the issue is tracked in GitHub issue #713, and additional metadata is available on VulDB entry 413198.

Workarounds

  • Uninstall the Xreader EPUB backend package where distributions ship it separately
  • Change the MIME handler for application/epub+zip to a different EPUB reader until the Xreader upgrade is deployed
  • Restrict delivery of EPUB attachments at the mail gateway or web proxy pending remediation
bash
# Verify installed Xreader version and upgrade on Linux Mint
xreader --version
sudo apt update && sudo apt install --only-upgrade xreader

# Reassign the default handler for EPUB files to an alternative viewer
xdg-mime default org.gnome.Epiphany.desktop application/epub+zip

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.