/

CVE-2026-52349

Severity:

HIGH RISK

(7.8)

Directory Traversal (CWE-22) in Menyoo File Operations

CVE-2026-52349

Deferred

Vulnerability type

Category:

Directory Traversal

CWE:

CWE-22

Impact:

Local Arbitrary Code Execution via Path Traversal

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A directory traversal flaw in Menyoo prior to commit 729aa48 allows local attackers to abuse multiple file management features to read and write files outside intended directories.

By manipulating paths in Spooner, VehicleSpawner, WeaponOptions, and PedComponentChanger save and folder operations, an attacker can pivot this file access into arbitrary code execution on the host system.

Affected context

This vulnerability occurs in Menyoo's file handling logic for in‑tool content management:

  • Spooner file management
  • VehicleSpawner save/folder/rename operations
  • WeaponOptions save/folder/rename operations
  • PedComponentChanger create folder/create file/rename operations

It is relevant when the tool allows user-controlled paths or file names without adequately constraining or normalizing locations, and when the environment loads or executes files from user-accessible directories.

Exploit preconditions

  • Attack surface: Local Menyoo runtime, via UI or configuration interfaces that accept folder/file names and paths.
  • Required access: Ability to interact with Menyoo and supply crafted folder names, file names, or save paths (e.g., local user running the tool).
  • Trigger point: Invoking save, create, or rename actions in the affected features so that user-supplied paths are processed.
  • Why exploitation is possible: Menyoo's file APIs accept unvalidated or insufficiently sanitized path input, allowing traversal sequences (such as ../) that escape intended directories and target sensitive or executable locations.

Why this happens

The underlying bug class is improper restriction of path traversal in file operations, mapping to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Menyoo's save, create, and rename functions for content modules treat user-controlled folder and file names as trusted paths. Without strict normalization, removal of traversal tokens, and enforcement that resulting paths remain within an allowed base directory, the code permits access to arbitrary filesystem locations.

In environments where files created or modified by Menyoo can later be loaded as executable scripts, configuration, or plugins, this uncontrolled file access can be escalated into arbitrary code execution.

Potential impact

  • Local attackers may read or overwrite files outside the intended Menyoo directories.
  • Attackers could plant or modify files that are later executed or interpreted as code by the game or associated tools.
  • Configuration or resource corruption that destabilizes the game environment.
  • Facilitation of privilege escalation if altered files are consumed by higher-privileged processes.

General mitigation guidance

Mitigation typically focuses on tight path control and reducing trust in user-supplied file locations:

  • Resolve and normalize all paths against a fixed, application-controlled base directory and reject any that escape this root.
  • Strip or disallow traversal sequences, absolute paths, and special device names from user inputs.
  • Use high-level file APIs that enforce sandboxed storage (e.g., dedicated content directories) instead of raw filesystem access.
  • Separate executable content from user-managed data, ensuring that user-created files are never treated as code or auto-loaded scripts.
  • Apply least-privilege principles so Menyoo runs with only the filesystem permissions it strictly needs.

How teams detect issues like this

Detection approaches often rely on:

  • Static analysis rules that flag use of raw path concatenation (e.g., string-based ../ handling) and absence of canonicalization or directory whitelisting before file operations.
  • Code reviews that specifically inspect save, rename, and folder creation features for user-controlled inputs reaching filesystem APIs.
  • Policies in development that mandate centralized helpers for safe path construction and ban direct concatenation of user input with base paths.
  • Runtime monitoring or logging of unexpected file access patterns (such as attempts to touch files outside the designated content directories) to support incident investigation.

Sources

SourceLink
github.comgithub.com/itsjustcurtis/MenyooSP/commit/729aa48
github.comgithub.com/itsjustcurtis/MenyooSP/pull/550

Frequently asked

questions

No, it is principally a local vulnerability. The attacker must be able to run Menyoo or otherwise control its file management inputs on the affected system.

The attacker needs local access sufficient to interact with Menyoo's Spooner, VehicleSpawner, WeaponOptions, or PedComponentChanger file operations. This typically corresponds to the same user account that runs the tool.

Enforce strict path containment by normalizing all user-supplied paths, validating that they remain within a predefined base directory, and rejecting any input that attempts traversal or uses absolute paths. Centralize this logic in shared helpers and apply it consistently across all file-related features.

Treat all file and folder names from users as untrusted data. Use canonicalization routines, directory whitelists, and sandboxed storage locations, and back these with secure coding guidelines and automated checks that alert when user input is passed directly into filesystem operations.

Find out what's already
exploitable in your codebase.