[Security] CVE-2026-117065: OS Command Injection (CWE-78) in Windows Launcher – Arbitrary Code Execution #2192

Closed
opened 2026-11-26 10:16:40 +00:00 by github-bot · 1 comment
Owner

@⁠CodeStartUp on GitHub · 2026-11-10 04:48 UTC · original

Security Vulnerability Report

CVE ID: CVE-2026-117065 (Reserved)
Severity: High
CVSS 3.1: 7.8 (proposed)
Vulnerability Type: OS Command Injection (CWE-78)
Affected Product: KytyPS5
Affected Version: 0.3.0
Affected Platform: Windows x64
Affected Component: "launcher.exe"

  1. Vulnerability Description

A command injection vulnerability has been identified in the Windows launcher of KytyPS5 version 0.3.0.

The issue occurs when the launcher constructs a command string using "cmd.exe /K" and passes user-controlled configuration values through an incorrectly implemented quoting function.

The affected functions include:

  • "WinCmdQuote()"
  • "BuildWinCmdKCommand()"
  • "MainDialog::RunInterpreter()"

The current quoting implementation does not correctly handle Windows command interpreter parsing rules.

As a result, specially crafted configuration values may escape the intended quoted argument and cause additional commands to execute.

  1. Security Impact

A local attacker may craft a malicious launcher configuration and convince a victim to import or load it.

When the victim launches a game through the affected launcher, an injected command may execute with the privileges of the logged-in Windows user.

Potential impacts include:

  • Arbitrary code execution
  • Unauthorized file access
  • Modification of user-accessible files
  • Execution of additional commands
  1. Proof of Concept (PoC)

The vulnerability has reportedly been reproduced against the official Windows release binary.

The verification demonstrated that:

  1. A crafted configuration value reaches the vulnerable command-construction function.
  2. The launcher passes the constructed command to "cmd.exe /K".
  3. Incorrect quote handling allows command execution outside the intended argument.
  4. A harmless marker-file test confirms execution in the user's security context.

The PoC is intended for controlled testing on an isolated Windows test environment.

Technical analysis and supporting evidence:

https://github.com/CodeStartUp/CVE-2026-117065

  1. Root Cause

The launcher uses backslash-based quote escaping that is not sufficient for "cmd.exe" parsing.

The vulnerable implementation combines user-controlled arguments into a shell command instead of passing them as separate process arguments.

  1. Recommended Remediation

Avoid constructing shell command strings containing user-controlled values.

On Windows, use Qt's "QProcess" directly:

"process->setProgram(interpreter);"

"process->setArguments(args);"

Avoid passing user-controlled arguments through "cmd.exe /K".

  1. References
  1. Request to Maintainers

Please investigate this vulnerability and confirm the affected versions.

I can provide additional reproduction evidence and the controlled PoC artifacts privately to assist with verification and remediation.

Please acknowledge this security report and advise on the expected remediation timeline.

**@⁠CodeStartUp** on GitHub · 2026-11-10 04:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2192) Security Vulnerability Report CVE ID: CVE-2026-117065 (Reserved) Severity: High CVSS 3.1: 7.8 (proposed) Vulnerability Type: OS Command Injection (CWE-78) Affected Product: KytyPS5 Affected Version: 0.3.0 Affected Platform: Windows x64 Affected Component: "launcher.exe" 1. Vulnerability Description A command injection vulnerability has been identified in the Windows launcher of KytyPS5 version 0.3.0. The issue occurs when the launcher constructs a command string using "cmd.exe /K" and passes user-controlled configuration values through an incorrectly implemented quoting function. The affected functions include: - "WinCmdQuote()" - "BuildWinCmdKCommand()" - "MainDialog::RunInterpreter()" The current quoting implementation does not correctly handle Windows command interpreter parsing rules. As a result, specially crafted configuration values may escape the intended quoted argument and cause additional commands to execute. 2. Security Impact A local attacker may craft a malicious launcher configuration and convince a victim to import or load it. When the victim launches a game through the affected launcher, an injected command may execute with the privileges of the logged-in Windows user. Potential impacts include: - Arbitrary code execution - Unauthorized file access - Modification of user-accessible files - Execution of additional commands 3. Proof of Concept (PoC) The vulnerability has reportedly been reproduced against the official Windows release binary. The verification demonstrated that: 1. A crafted configuration value reaches the vulnerable command-construction function. 2. The launcher passes the constructed command to "cmd.exe /K". 3. Incorrect quote handling allows command execution outside the intended argument. 4. A harmless marker-file test confirms execution in the user's security context. The PoC is intended for controlled testing on an isolated Windows test environment. Technical analysis and supporting evidence: https://github.com/CodeStartUp/CVE-2026-117065 4. Root Cause The launcher uses backslash-based quote escaping that is not sufficient for "cmd.exe" parsing. The vulnerable implementation combines user-controlled arguments into a shell command instead of passing them as separate process arguments. 5. Recommended Remediation Avoid constructing shell command strings containing user-controlled values. On Windows, use Qt's "QProcess" directly: "process->setProgram(interpreter);" "process->setArguments(args);" Avoid passing user-controlled arguments through "cmd.exe /K". 6. References - Technical report and PoC: https://github.com/CodeStartUp/CVE-2026-117065 - Vulnerable source: https://github.com/KytyPS5/KytyPS5/blob/main/src/launcher/src/mainDialog.cpp - CWE-78: https://cwe.mitre.org/data/definitions/78.html 7. Request to Maintainers Please investigate this vulnerability and confirm the affected versions. I can provide additional reproduction evidence and the controlled PoC artifacts privately to assist with verification and remediation. Please acknowledge this security report and advise on the expected remediation timeline.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:16:40 +00:00
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-10 14:48 UTC · original

Thanks for the report. I checked it against the git history:

  • WinCmdQuote / BuildWinCmdKCommand came in with #244 (bc2f077c3) and were in every Windows release from KytyPS5-2026-08-16-bc2f077 up to KytyPS5-2026-10-24-8291cfe, including the KytyPS5-2026-10-08-5a88080 build ("0.3.0") you tested. Before #244 the launcher already ran cmd.exe /K with Qt's argument quoting, which does not protect cmd.exe metacharacters either.
  • #1869 (906d25568) replaced the helper with CmdCommand in src/launcher/src/mainDialog.cpp. It doubles embedded quotes and the backslashes right before a quote or the end of a token, and quotes every token. This blocks the report's literal quote breakout, but does not make arbitrary configuration values safe for cmd.exe. The \" breakout from the report does not work on releases from KytyPS5-2026-10-24-906d255 onwards, including the current one (KytyPS5-2026-11-10-782a85c).
  • Quoting alone does not close the issue. cmd.exe expands %...% inside quoted arguments before it parses operators, and an expansion can produce a quote character. On current main (782a85c62), command injection through a configuration value remains possible: a shell-level reproduction of CmdCommand's quoting ran a harmless marker command under Windows 11 cmd.exe /K, with either terminal-close setting. This was not an end-to-end launcher test, and I am not posting the value here.

Suggested fix: start kyty_emulator.exe directly with QProcess::setProgram + setArguments, drop the cmd.exe /K command string (setNativeArguments), and keep CREATE_NEW_CONSOLE (already set). Then no configuration string goes through a shell on Windows. Keeping the console open after an error needs another way, for example the emulator waiting for a key when it exits with an error (this does not cover a crash). Rejecting control characters in imported settings is useful validation, but it does not fix the expansion.

**@⁠Nawid3333** on GitHub · 2026-11-10 14:48 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2192#issuecomment-6770436292) Thanks for the report. I checked it against the git history: - `WinCmdQuote` / `BuildWinCmdKCommand` came in with #244 (bc2f077c3) and were in every Windows release from `KytyPS5-2026-08-16-bc2f077` up to `KytyPS5-2026-10-24-8291cfe`, including the `KytyPS5-2026-10-08-5a88080` build ("0.3.0") you tested. Before #244 the launcher already ran `cmd.exe /K` with Qt's argument quoting, which does not protect cmd.exe metacharacters either. - #1869 (906d25568) replaced the helper with `CmdCommand` in `src/launcher/src/mainDialog.cpp`. It doubles embedded quotes and the backslashes right before a quote or the end of a token, and quotes every token. This blocks the report's literal quote breakout, but does not make arbitrary configuration values safe for cmd.exe. The `\"` breakout from the report does not work on releases from `KytyPS5-2026-10-24-906d255` onwards, including the current one (`KytyPS5-2026-11-10-782a85c`). - Quoting alone does not close the issue. cmd.exe expands `%...%` inside quoted arguments before it parses operators, and an expansion can produce a quote character. On current main (`782a85c62`), command injection through a configuration value remains possible: a shell-level reproduction of `CmdCommand`'s quoting ran a harmless marker command under Windows 11 `cmd.exe /K`, with either terminal-close setting. This was not an end-to-end launcher test, and I am not posting the value here. Suggested fix: start `kyty_emulator.exe` directly with `QProcess::setProgram` + `setArguments`, drop the `cmd.exe /K` command string (`setNativeArguments`), and keep `CREATE_NEW_CONSOLE` (already set). Then no configuration string goes through a shell on Windows. Keeping the console open after an error needs another way, for example the emulator waiting for a key when it exits with an error (this does not cover a crash). Rejecting control characters in imported settings is useful validation, but it does not fix the expansion.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#2192
No description provided.