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-104983 Overview
CVE-2026-104983 is a path traversal vulnerability [CWE-22] affecting Linux Mint Xreader up to version 4.6.9. The flaw resides in the g_file_get_child function within shell/ev-window.c, part of the PDF Attachment Saving Handler. An attacker can manipulate the attachment argument to write files outside the intended directory. The attack is network-reachable but requires user interaction, such as opening a crafted PDF document. The exploit has been publicly disclosed. A project maintainer closed the related issue as completed, citing that EPUB support was moved to Xepub, though code analysis suggests this reasoning may not fully address the PDF attachment code path.
Critical Impact
A crafted PDF file can trigger path traversal during attachment extraction, allowing an attacker to write files to locations outside the intended save directory on systems running vulnerable Xreader versions.
Affected Products
- Linux Mint Xreader versions up to and including 4.6.9
- shell/ev-window.c PDF Attachment Saving Handler component
- Downstream Linux Mint distributions shipping affected Xreader builds
Discovery Timeline
- 2026-10-03 - CVE-2026-104983 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-104983
Vulnerability Analysis
Xreader is the document viewer bundled with Linux Mint and the Cinnamon desktop environment. The vulnerability exists in the PDF attachment saving routine inside shell/ev-window.c. When Xreader processes a PDF containing embedded attachments, it invokes g_file_get_child using an attacker-controlled attachment name as the child path component.
Because the attachment name is not sanitized for directory traversal sequences, a malicious PDF can embed an attachment with a name such as ../../.config/autostart/payload.desktop. When the user chooses to save the attachment, the resolved path escapes the destination directory. This can lead to arbitrary file write within the user's privilege boundary.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The handler trusts the attachment filename supplied by the PDF rather than treating it as untrusted input. The call to g_file_get_child resolves relative path components, enabling traversal outside the user-selected destination.
Attack Vector
Exploitation requires a victim to open a crafted PDF in Xreader and save an embedded attachment. The attack is network-reachable because malicious PDFs can be delivered via email, web download, or shared file systems. The impact is bounded by file system permissions of the user running Xreader. See the GitHub Issue Report and VulDB CVE-2026-104983 for additional technical context.
// Conceptual flow (no verified PoC code published)
// Malicious PDF contains an embedded attachment named:
// "../../.config/autostart/evil.desktop"
// Xreader calls:
// g_file_get_child(dest_dir, attachment_name)
// Resulting GFile resolves outside dest_dir, writing to attacker-chosen path.
Detection Methods for CVE-2026-104983
Indicators of Compromise
- PDF files containing embedded attachments whose filenames include ../ or absolute path sequences
- Unexpected file creation in sensitive directories such as ~/.config/autostart/, ~/.ssh/, or ~/.bashrc following Xreader usage
- Xreader process writes to paths outside the user-selected save destination
Detection Strategies
- Inspect PDF attachment metadata for filenames containing traversal sequences before users open documents
- Monitor file create events originating from the xreader process and alert when writes fall outside the user's active working directory
- Correlate Xreader execution with modifications to shell initialization files or autostart directories
Monitoring Recommendations
- Enable file integrity monitoring on ~/.config/autostart/, ~/.ssh/, and shell profile files on Linux endpoints running Xreader
- Log and review PDF documents received via email gateways for embedded attachments with suspicious filenames
- Track installed Xreader package versions across the fleet to identify systems still on 4.6.9 or earlier
How to Mitigate CVE-2026-104983
Immediate Actions Required
- Avoid saving attachments from untrusted PDF documents in Xreader until a fixed version is confirmed
- Inventory Linux Mint systems and identify any running Xreader 4.6.9 or earlier
- Educate users to open PDFs from unknown senders in a sandboxed or non-privileged environment
Patch Information
At the time of publication, no vendor patch is referenced in the NVD advisory. The upstream issue was closed by a project maintainer with a note that EPUB support was removed and reimplemented in Xepub, which does not directly address the PDF attachment code path. Monitor the Linux Mint Xreader repository and distribution security channels for updated releases.
Workarounds
- Disable or restrict the attachment saving feature by instructing users not to invoke the save-attachment action on untrusted PDFs
- Use an alternative PDF viewer that validates attachment filenames when extracting embedded content
- Apply AppArmor or SELinux profiles to Xreader that restrict write access to a single, user-owned directory
# Example AppArmor confinement snippet to restrict Xreader writes
# Place in /etc/apparmor.d/local/usr.bin.xreader and reload policy
owner @{HOME}/Documents/** rw,
owner @{HOME}/Downloads/** rw,
deny @{HOME}/.config/autostart/** w,
deny @{HOME}/.ssh/** w,
deny @{HOME}/.bashrc w,
deny @{HOME}/.profile w,
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

