CVE-2026-95832
Inyección en kitty
En resumen
Un atacante con acceso al equipo podría tomar el control del sistema afectado si engaña a alguien para que abra un archivo o un enlace.
Cómo se ataca
- Se puede atacar con acceso al equipo (una sesión local o un archivo que la víctima abra).
- No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
- No necesita usuario ni contraseña.
- Necesita que alguien haga algo, como abrir un archivo, visitar una página o hacer clic en un enlace.
Qué puede lograr el atacante
- Leer información confidencial: datos, archivos o credenciales.
- Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
- Dejar el servicio o el equipo sin funcionar.
- Afectar gravemente a otros sistemas que dependen del vulnerable.
Cómo corregirla
- Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
- Aplique la actualización o la mitigación que indica el fabricante.
- Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
Recomendaciones para este tipo de fallo
- Usar las funciones de cada sistema que separan dato de instrucción (filtros LDAP con escape, consultas XPath parametrizadas).
- Quitar saltos de línea de lo que vaya a encabezados o registros.
- Al exportar a CSV, anteponer una comilla a celdas que empiecen por = + - o @.
- Validar el formato esperado de cada dato.
A qué afecta
Kovid Goyal · kitty
desde 0.47.3 hasta antes de 0.49.0
Qué es: Inyección en otros intérpretes (LDAP, XPath, encabezados, registros)
Datos del usuario llegan sin neutralizar a otro sistema que los interpreta (un directorio LDAP, una consulta XPath, encabezados HTTP, un registro, una hoja de cálculo) y el atacante cambia su significado.
La idea es la misma de la inyección SQL: caracteres especiales que el destino entiende como instrucciones. Con LDAP o XPath se saltan inicios de sesión o se leen datos; con saltos de línea en encabezados se crean cookies o respuestas falsas; en registros se falsean entradas; en archivos CSV se ejecutan fórmulas al abrirlos en Excel.
Guía completa: dónde aparece, cómo se corrige y qué evitarDescripción oficial (en inglés)
Improper Neutralization of Special Elements in Output Used by a Downstream Component in the colour control escape code handler in kitty from 0.47.3 before 0.49.0 allows a program writing to the terminal to execute an arbitrary command in the user's shell, because color_control() in kitty/window.py answers a query for an unrecognised field name by placing that field name into the reply, and write_escape_code_to_child() in kitty/screen.c then writes the reply to the pseudoterminal master, where it is not distinguishable from input typed by the user, without neutralising it for the shell that reads it. The payload is reduced to printable ASCII before the field name is echoed, which is the restriction introduced in 0.47.3 as the fix for CVE-2026-54057, and the record and field separators ; and = are consumed as delimiters, but every other printable character survives, which is sufficient to compose a shell command. A newline is available from handle_remote_ssh() in kitty/window.py, which writes the bytes yielded by get_ssh_data() in kittens/ssh/utils.py, the first of which begin with a newline, to the pseudoterminal master before any credential carried in the request is checked. The reply is framed as an OSC sequence carrying the escape code number, the field name, and the literal value ?. This results in execution of an attacker-chosen command with the privileges of the user running the terminal.