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-2024-23749 Overview
CVE-2024-23749 is a command injection vulnerability affecting KiTTY, a Windows SSH and telnet client forked from PuTTY. Versions 0.76.1.13 and earlier fail to properly sanitize the filename variable, allowing attackers to inject arbitrary commands. The flaw stems from insecure system calls between lines 2369-2390 of the vulnerable code, combined with missing input validation and improper escaping of special characters. Successful exploitation leads to arbitrary code execution in the context of the local user running KiTTY.
Critical Impact
Local attackers can achieve arbitrary code execution on Windows systems running vulnerable KiTTY builds by supplying crafted filename input.
Affected Products
- 9bis KiTTY for Windows versions 0.76.1.13 and earlier
- KiTTY builds derived from vulnerable PuTTY fork code
- Deployments relying on default KiTTY file-handling behavior
Discovery Timeline
- 2024-02-09 - CVE-2024-23749 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-23749
Vulnerability Analysis
The vulnerability is a command injection flaw tracked under CWE-77. KiTTY processes a filename variable without applying sufficient input sanitization or escaping of shell metacharacters. The affected code path, located between lines 2369-2390 of the KiTTY source, passes attacker-controllable input directly into insecure system calls. An attacker who can influence the filename variable can embed command separators and auxiliary commands that the operating system executes.
Exploitation requires local access and low privileges, but no user interaction. The result is full compromise of confidentiality, integrity, and availability on the host, because injected commands run with the privileges of the KiTTY user.
Root Cause
The root cause is insufficient input validation combined with unsafe invocation of system calls that interpret shell metacharacters. KiTTY concatenates the filename variable into command strings without escaping characters such as &, |, ;, backticks, or quoted substrings. Because the resulting string is handed to a shell-aware system call, any injected tokens are parsed and executed as additional commands.
Attack Vector
The attack vector is local. An attacker supplies a crafted filename, for example via a shared directory, phishing-delivered configuration file, or saved session, that KiTTY consumes during normal operation. When KiTTY references the filename in the vulnerable code path, the embedded payload executes. Public technical analysis is available at the Defcesco CVE-2024-23749 writeup and the Packet Storm advisory.
No verified exploit code is reproduced here. See the referenced advisories for proof-of-concept details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2024-23749
Indicators of Compromise
- Unexpected child processes spawned by kitty.exe or associated KiTTY helper binaries
- Saved session files or filename fields containing shell metacharacters such as &, |, ;, or backticks
- Command-line arguments to cmd.exe or powershell.exe that reference KiTTY session paths
- Creation or modification of KiTTY configuration files from untrusted sources
Detection Strategies
- Alert on process-tree anomalies where kitty.exe spawns scripting hosts (cmd.exe, powershell.exe, wscript.exe)
- Inspect KiTTY session storage locations for filenames containing shell control characters
- Correlate KiTTY execution with outbound network connections not initiated by legitimate SSH or telnet sessions
Monitoring Recommendations
- Enable process creation auditing (Windows Event ID 4688) with command-line logging on hosts running KiTTY
- Forward Sysmon Event IDs 1 and 11 to a central SIEM for KiTTY-related process and file activity
- Track changes to KiTTY configuration directories and saved sessions using file integrity monitoring
How to Mitigate CVE-2024-23749
Immediate Actions Required
- Inventory all endpoints running KiTTY and identify instances at or below version 0.76.1.13
- Upgrade to a KiTTY release that remediates the filename handling flaw, or remove the application where no fixed build is available
- Restrict write access to KiTTY configuration directories and shared session file locations
- Review existing saved sessions for filenames containing shell metacharacters and purge any suspicious entries
Patch Information
No vendor advisory URL was listed in the NVD record at the time of publication. Administrators should obtain the latest KiTTY release from the official 9bis distribution channel and validate the version is above 0.76.1.13. Consult the Full Disclosure listing for additional context on the disclosure.
Workarounds
- Replace KiTTY with a maintained SSH client such as PuTTY or OpenSSH where feasible
- Block execution of kitty.exe via application control policies (Windows Defender Application Control or AppLocker) until patched
- Enforce least privilege so KiTTY runs under non-administrative user contexts, limiting impact of injected commands
# Example AppLocker rule concept to block vulnerable KiTTY builds
# Deny execution of kitty.exe with FileVersion <= 0.76.1.13
New-AppLockerPolicy -RuleType Publisher -User Everyone \
-Path "C:\\Program Files\\KiTTY\\kitty.exe" \
-Action Deny
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

