Skip to main content
Vulnerability Database/CVE-2026-112263

CVE-2026-112263: Television (tv) RCE Vulnerability

CVE-2026-112263 is an OS command injection flaw in Television (tv) versions 0.15.0 through 0.15.9 that allows attackers to execute shell commands via crafted filenames. This post explains its impact, affected versions, and mitigation steps.

Published:

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-2026-112263 Overview

CVE-2026-112263 is an operating system (OS) command injection vulnerability [CWE-78] in the Television (tv) terminal application, versions 0.15.0 through 0.15.9. The flaw resides in the format_command logic, where single quotes in file names are not properly escaped before being passed to the shell. An attacker who can plant a file with a crafted name containing an apostrophe can trigger arbitrary shell command execution when the victim invokes an action such as the default edit action on that entry.

Critical Impact

Local attackers can achieve arbitrary command execution with the victim's privileges by placing a maliciously named file in a directory the victim browses with Television.

Affected Products

  • Television (tv) version 0.15.0
  • Television (tv) versions 0.15.1 through 0.15.8
  • Television (tv) version 0.15.9

Discovery Timeline

  • 2026-10-19 - CVE-2026-112263 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-112263

Vulnerability Analysis

Television is a cross-platform fuzzy finder written in Rust that can invoke external actions against selected entries. The vulnerability stems from unsafe shell quoting in television/utils/command.rs. When the application builds a command string for an external action, it wraps each entry in POSIX single quotes and attempts to escape embedded apostrophes with a backslash. Inside POSIX single quotes a backslash has no escaping meaning, so the apostrophe terminates the quoted string and the remainder of the file name is interpreted by the shell.

An attacker who can write a file into a directory the victim browses with tv can embed shell metacharacters in the file name. When the victim selects that entry and triggers an action such as the default edit action defined in cable/unix/files.toml, the shell executes the attacker-controlled commands under the victim's user context.

Root Cause

The root cause is incorrect quoting in format_command. The original code used entry.raw.replace('\'', r"\'"), which does not neutralize apostrophes inside single-quoted POSIX shell strings. The fix replaces each apostrophe with the standard '\'' sequence that closes the quote, emits an escaped apostrophe, and reopens the quote.

Attack Vector

Exploitation requires local file-system write access to a directory the victim will browse and user interaction to trigger an action on the crafted entry. The attack does not require authentication to Television itself and executes with the privileges of the user running tv.

rust
// Patch: television/utils/command.rs
// Source: https://github.com/alexpasmantier/television/commit/d7d46abb791181a3b5b6eed05e72aafcaa0ef269
            template_str
        );

-        // Multiple entries: quote each and join with spaces
+        // Multiple entries: quote each and join with spaces.
+        // Inside POSIX single quotes a backslash has no escaping meaning, so a
+        // literal apostrophe must close the quote, emit an escaped apostrophe,
+        // and reopen the quote (the standard '\'' sequence).
        let quoted_entries: Vec<String> = entries
            .iter()
-            .map(|entry| format!("'{}'", entry.raw.replace('\'', r"\'")))
+            .map(|entry| format!("'{}'", entry.raw.replace('\'', r"'\''")))
            .collect();
        let entries_joined = quoted_entries.join(SPACE);
        let formatted_command = template_str.replace("{}", &entries_joined);

A companion patch in television/utils/shell.rs centralizes shell-specific quoting for Bash, Zsh, Fish, PowerShell, and Nu. See the centralized shell quoting commit for the full change.

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 Attempts

Detection Methods for CVE-2026-112263

Indicators of Compromise

  • Files with apostrophes and shell metacharacters in their names (for example, names containing ';, '$(, or ') within directories browsed by tv.
  • Unexpected child processes spawned by tv or by configured editors (vim, nano, code) that originate from Television action invocations.
  • Shell history entries containing fragments of file names concatenated with external commands.

Detection Strategies

  • Audit installed Television versions on developer and operator workstations and flag any instance between 0.15.0 and 0.15.9.
  • Monitor process-creation telemetry for tv spawning shells (bash, zsh, fish, pwsh, nu) with command lines that contain unbalanced quote sequences.
  • Alert on file-system write events that create files whose names contain apostrophes followed by shell operators in shared or world-writable directories.

Monitoring Recommendations

  • Collect endpoint process-execution logs with full command-line arguments and parent-process context to reconstruct action invocations.
  • Correlate file-creation events in home and project directories with subsequent shell executions attributed to Television.
  • Review scheduled jobs, synced cloud folders, and version-controlled repositories as delivery vectors for maliciously named files.

How to Mitigate CVE-2026-112263

Immediate Actions Required

  • Upgrade Television to a release that includes commits d7d46abb and 32695ccc, which land after 0.15.9.
  • Inventory endpoints where tv is installed via cargo, Homebrew, or distribution packages and prioritize patching developer workstations.
  • Until patched, avoid running tv against untrusted directories such as shared drives, cloned repositories from unverified sources, or extracted archives.

Patch Information

The maintainer released two fixes in the Television repository. Commit d7d46abb corrects the single-quote escaping in format_command. Commit 32695ccc centralizes shell-aware quoting for Bash, Zsh, Fish, PowerShell, and Nu. Reference the VulnCheck advisory and GitHub Issue #1166 for additional context.

Workarounds

  • Disable or remove external actions in Television configuration until the patched release is installed.
  • Restrict tv usage to trusted directories whose contents are controlled by the current user.
  • Enforce file-naming policies that reject apostrophes and shell metacharacters in automated ingestion pipelines that feed directories browsed with Television.
bash
# Verify installed Television version and upgrade via cargo
tv --version
cargo install --locked television  # install a release newer than 0.15.9

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.