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

CVE-2026-113613: FlexGet Path Traversal Vulnerability

CVE-2026-113613 is a path traversal flaw in FlexGet's decompress plugin allowing attackers to write arbitrary files via malicious archives. This post covers the 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-113613 Overview

CVE-2026-113613 is a path traversal vulnerability [CWE-22] in FlexGet versions before 3.20.7. The flaw resides in the decompress plugin, which processes zip and rar archives supplied through configured feeds. Attackers can craft archive entries containing ../ sequences or absolute paths to write files outside the intended extraction directory. Because FlexGet loads Python modules from its plugins directory at runtime, an attacker can drop a malicious .py file into that path and achieve remote code execution. The vulnerability is tracked as GHSA-6v57-v478-59v9 and was fixed in release v3.20.7.

Critical Impact

Remote attackers can write arbitrary files to the FlexGet plugins directory via malicious archive entries, resulting in arbitrary code execution in the context of the FlexGet process.

Affected Products

  • FlexGet versions prior to 3.20.7
  • FlexGet decompress plugin (flexget/components/archives/decompress.py)
  • FlexGet archives component utilities (flexget/components/archives/utils.py)

Discovery Timeline

  • 2026-10-20 - CVE-2026-113613 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-113613

Vulnerability Analysis

FlexGet is an automation tool that ingests feeds and processes resulting content, including compressed archives. The decompress plugin extracts zip and rar members to a configured destination directory. In versions prior to 3.20.7, the plugin derived the output path from the archive entry filename without validating that the resolved path remained within the destination. This is a classic Zip Slip pattern. Supplying an entry name such as ../../plugins/evil.py or an absolute path causes extraction outside the intended folder. Because FlexGet dynamically loads Python modules from its plugins directory, written files are executed on the next load cycle. The attack succeeds without authentication when a user processes a feed containing a malicious archive.

Root Cause

The root cause is missing validation in get_destination_path when building the output path for each archive member. The pre-patch code in decompress.py lines 74-77 trusts the archive-supplied filename and passes the resolved destination directly to the extraction routine. There is no check that the resolved path is a descendant of the configured target directory.

Attack Vector

An attacker delivers a crafted zip or rar archive through any FlexGet input that triggers the decompress plugin. The archive contains members whose names include directory traversal sequences or absolute paths pointing at the FlexGet plugins directory. On extraction, FlexGet writes attacker-controlled Python code into that directory. The next plugin load executes the attacker's code with the privileges of the FlexGet process.

python
# Patch applied in flexget/components/archives/decompress.py
def extract_info(info, archive, to: Path, keep_dirs, test=False):
    """Extract ArchiveInfo object."""
    try:
        destination = get_destination_path(info, to, keep_dirs)
    except archiveutil.PathTraversalError as error:
        logger.error('Skipping malicious archive entry: {}', error)
        return

    if test:
        logger.info('Would extract: {} to {}', info.filename, destination)
# Source: https://github.com/Flexget/Flexget/commit/38fa748461e20befee942f5c79d8a098edea5c1f

The companion change in flexget/components/archives/utils.py introduces a new PathTraversalError exception raised when a member would extract outside the destination directory:

python
# New exception class added in flexget/components/archives/utils.py
class PathTraversalError(ArchiveError):
    """Exception to be raised when an archive member would extract outside the destination directory."""
# Source: https://github.com/Flexget/Flexget/commit/38fa748461e20befee942f5c79d8a098edea5c1f

Detection Methods for CVE-2026-113613

Indicators of Compromise

  • Unexpected .py files appearing in the FlexGet plugins directory or user plugins path.
  • FlexGet log entries referencing archive extraction immediately before new file creation outside the configured to path.
  • Archive files containing member names with ../ sequences or absolute paths observed in feeds, downloads, or watch folders.
  • FlexGet child processes spawning unexpected interpreters or outbound network connections after a feed run.

Detection Strategies

  • Inspect zip and rar archives processed by FlexGet for members whose canonical path escapes the extraction root.
  • Monitor file create and write events in the FlexGet installation directory, the user config directory, and any plugins/ subdirectory.
  • Alert on modifications to Python source files owned by the FlexGet runtime user outside of package upgrades.

Monitoring Recommendations

  • Enable file integrity monitoring on the FlexGet plugins and components directories.
  • Forward FlexGet application logs to a central SIEM and alert on decompress plugin errors and extraction warnings.
  • Track process execution lineage for the FlexGet service to flag unexpected child processes following archive handling tasks.

How to Mitigate CVE-2026-113613

Immediate Actions Required

  • Upgrade FlexGet to version 3.20.7 or later, which contains commit 38fa748 fixing the traversal.
  • Audit the FlexGet plugins directory for Python files not shipped with the installed version and remove any that are unauthorized.
  • Restrict the FlexGet process to a dedicated low-privilege account to limit the blast radius of code execution.
  • Review feed sources and disable the decompress plugin for feeds that process untrusted archives until the upgrade is applied.

Patch Information

The fix is published in FlexGet Release v3.20.7 and implemented in commit 38fa748. Additional details are documented in the GitHub Security Advisory GHSA-6v57-v478-59v9 and the VulnCheck advisory for the FlexGet Zip Slip issue.

Workarounds

  • Disable the decompress plugin in config.yml until the upgrade can be completed.
  • Only process archives from trusted sources and pre-validate archive member names before FlexGet handles them.
  • Run FlexGet in a container or chroot with a read-only plugins directory to prevent code drop even if traversal occurs.
bash
# Upgrade FlexGet via pip to the patched release
pip install --upgrade 'flexget>=3.20.7'

# Verify installed version
flexget --version

# Temporary workaround: disable the decompress plugin in config.yml
# tasks:
#   my_task:
#     decompress: no

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.