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

CVE-2026-112049: Vita3K Path Traversal Vulnerability

CVE-2026-112049 is a path traversal flaw in Vita3K emulator that lets attackers write files outside the install directory via malicious .vpk archives. This post covers technical details, affected versions, impact, and mitigation.

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-112049 Overview

CVE-2026-112049 is a path traversal vulnerability [CWE-22], commonly known as a zip slip flaw, affecting Vita3K builds prior to 4187. The weakness resides in the install_archive_content() function within vita3k/interface.cpp, which processes .vpk archive installations without validating entry paths. A crafted .vpk archive containing .. segments or absolute paths in zip entry names can cause Vita3K to write attacker-controlled files outside the designated install directory. Successful exploitation can lead to arbitrary file write anywhere the Vita3K process has permissions, potentially enabling host code execution.

Critical Impact

An attacker who convinces a user to install a malicious .vpk archive can write files to arbitrary locations on the host filesystem, potentially leading to code execution in the user's context.

Affected Products

  • Vita3K PlayStation Vita emulator builds prior to build 4187
  • The vulnerable install_archive_content() routine in vita3k/interface.cpp
  • All supported host platforms running affected Vita3K builds (Windows, macOS, Linux)

Discovery Timeline

  • 2026-10-18 - CVE-2026-112049 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-112049

Vulnerability Analysis

Vita3K is an open-source PlayStation Vita emulator that installs applications packaged as .vpk files, which are ZIP archives containing game and system content. The install_archive_content() function iterates over archive entries and writes each one to disk under a chosen install directory. The function constructs the output path by concatenating the install directory with the raw filename stored inside the archive. Because the entry name is never normalized or validated, embedded .. traversal sequences or absolute paths cause the resulting write operation to escape the intended directory. An attacker-controlled file can then be dropped into sensitive locations such as a user's startup folder, configuration directories, or other writable paths referenced by host software.

Root Cause

The root cause is missing path canonicalization and containment checks on untrusted zip entry names, a textbook instance of the zip slip vulnerability class. The pre-patch code trusted the archive metadata and used it directly to form filesystem paths.

Attack Vector

Exploitation requires local user interaction: the victim must install a malicious .vpk archive through Vita3K. Distribution channels include forum downloads, piracy sites, and chat communities where unofficial game packages are shared. No elevated privileges are required because writes occur with the privileges of the Vita3K process, which is typically the interactive user.

cpp
// Security patch applied in vita3k/interface.cpp
// Rejects archive entries that escape the install directory (#4253)

std::string replace_filename = m_filename.substr(content_path.size());
const fs::path file_output = (output_path / fs_utils::utf8_to_path(replace_filename)).generic_path();

const fs::path normalized_output_path = output_path.lexically_normal();
const fs::path normalized_file_output = file_output.lexically_normal();
const fs::path relative_to_output = normalized_file_output.lexically_relative(normalized_output_path);
if (relative_to_output.empty() || relative_to_output.string().starts_with("..")) {
    LOG_ERROR("Rejecting archive entry whose path escapes the install directory: {}", m_filename);
    continue;
}

if (mz_zip_reader_is_file_a_directory(zip.get(), i)) {
    fs::create_directories(file_output);
} else {

Source: Vita3K Commit 55f88cd. The patch normalizes both the intended output path and the computed file path, then verifies the entry resolves to a location inside the install directory before any write occurs.

Detection Methods for CVE-2026-112049

Indicators of Compromise

  • Files created by the Vita3K process outside its configured install directory, particularly in user startup folders or application data paths
  • .vpk archives that, when inspected with a ZIP tool, contain entry names with .. sequences or absolute path prefixes
  • Vita3K log entries referencing archive entries whose paths escape the install directory (patched builds log these rejections)

Detection Strategies

  • Inspect .vpk files before installation using a ZIP utility and reject archives containing non-relative entry names
  • Monitor filesystem telemetry for write operations by the Vita3K binary that target paths outside its installation and content directories
  • Correlate Vita3K process launches with subsequent file creation events in sensitive locations such as %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup on Windows or ~/.config/autostart on Linux

Monitoring Recommendations

  • Enable endpoint detection and response (EDR) telemetry on hosts where emulators are permitted, with a focus on process-to-file-write lineage
  • Alert on execution of binaries dropped into user-writable autorun locations shortly after an emulator process writes to those locations
  • Review the VulnCheck Advisory on Vita3K and GitHub Vita3K Issue #4254 for additional context

How to Mitigate CVE-2026-112049

Immediate Actions Required

  • Upgrade Vita3K to build 4187 or later, which contains the containment check from commit 55f88cd
  • Avoid installing .vpk archives obtained from untrusted sources until the emulator is updated
  • Inventory hosts where Vita3K is installed and verify the running build number against the fixed release

Patch Information

The fix is implemented in Vita3K commit 55f88cd, merged as part of pull request #4253. The patch normalizes paths using lexically_normal() and computes a relative path with lexically_relative() to confirm each archive entry resolves within the install directory. Entries that would escape are logged and skipped. Users should obtain the latest build from the official Vita3K repository.

Workarounds

  • Pre-scan .vpk archives with a ZIP inspector and reject any containing .. or absolute path components in entry names
  • Run Vita3K under a dedicated low-privilege user account that lacks write access to sensitive host directories and autorun locations
  • Restrict .vpk installations to archives from trusted, verified sources only
bash
# Verify your Vita3K build and inspect a .vpk archive for suspicious entries
vita3k --version

# List archive entries and flag path traversal sequences
unzip -l suspicious.vpk | awk '{print $4}' | grep -E '(\.\./|^/|^[A-Za-z]:)'

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.