CVE-2024-25003
NixOS vulnerability analysis and mitigation

Overview

KiTTY versions 0.76.1.13 and before contain a stack-based buffer overflow vulnerability (CVE-2024-25003) that affects the hostname parameter. The vulnerability was introduced in the original release in May 2021 (commit 4f79b1e) and exists due to insufficient bounds checking and input sanitization. This vulnerability affects all versions up to KiTTY ≤ 0.76.1.13 in their default configuration and is present across all Microsoft Windows operating systems 11/10/8/7/XP (DEFCESCO Blog).

Technical details

The vulnerability exists in the kitty.c file, specifically in the handling of the ANSI escape sequence '\033]0;__dt'. When KiTTY processes this sequence, it interprets it as an instruction to create a duplicate terminal session. The vulnerable code is located at lines 2597-2602, where insufficient bounds checking and input sanitization in the hostname parameter can lead to a stack-based buffer overflow. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows an attacker to overwrite adjacent memory, which can lead to arbitrary code execution in the context of the user running the application. Since KiTTY operates by default in the user permission group of Standard Users, successful exploitation could give attackers control over the affected system (DEFCESCO Blog).

Exploitability

The vulnerability is exploitable by any KiTTY user connecting to a host with the embedded exploit. Proof-of-concept exploits have been developed and are publicly available. The exploit can be triggered when a user logs in or is presented with the SSH warning/MOTD banner, as the malicious code can be inserted into the .bashrc file for all users or in the SSH warning/message of the day banner (Packet Storm).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management