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-105841 Overview
CVE-2026-105841 is an OS command injection vulnerability [CWE-78] in lrzsz versions prior to 0.13.0. The flaw resides in the lrz receive utility when invoked under a suffixed name such as lrztar, which activates pipe mode. A remote sender can supply a ZMODEM or YMODEM filename containing shell metacharacters, which the procheader() function in src/lrz.c passes unescaped to popen(). Commands then execute with the privileges of the receiving user.
Critical Impact
Remote senders can achieve arbitrary command execution on the receiving host by transmitting a file whose name contains shell metacharacters.
Affected Products
- lrzsz versions before 0.13.0
- lrz receive utility invoked as lrztar (pipe mode)
- Terminal environments and scripts that automatically launch lrz/lrztar on inbound ZMODEM/YMODEM transfers
Discovery Timeline
- 2026-10-06 - CVE-2026-105841 published to the National Vulnerability Database
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105841
Vulnerability Analysis
The lrzsz package implements the ZMODEM, YMODEM, and XMODEM serial file-transfer protocols. The lrz binary, when symlinked or renamed with a suffix such as lrztar, operates in pipe mode and delegates file handling to an external process. In vulnerable builds, the sender-supplied filename is forwarded directly into a shell command string.
The procheader() function in src/lrz.c concatenates the attacker-controlled filename into the argument passed to popen(). Because popen() invokes /bin/sh -c, any shell metacharacters such as backticks, $(), ;, |, or && are interpreted and executed. The result is reliable command execution as the user running lrz.
Exploitation requires that the target run lrz under a suffixed name and accept a transfer from the attacker. This is common in terminal emulators and automation that detect inbound ZMODEM traffic.
Root Cause
The root cause is unsanitized input flowing into a shell interpreter. The ZMODEM/YMODEM header carries a filename field that the protocol does not constrain to safe characters. The pipe-mode code path in src/lrz.c builds a shell command from this field and executes it through popen() without quoting or escaping, satisfying the classic command-injection pattern tracked under [CWE-78].
Attack Vector
The attack vector is network-adjacent through any transport that carries a ZMODEM or YMODEM session, including SSH sessions, serial links, and terminal multiplexers that bridge file-transfer protocols. User interaction is required: the victim must initiate or accept a transfer that triggers lrz in pipe mode. Once the crafted filename reaches procheader(), injected commands run under the receiver's UID with full access to that user's files, credentials, and running agents.
See the Vulncheck Advisory: lrzsz Command Injection and the Uwe Ohse lrzsz Release Notes for upstream technical detail.
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-2026-105841
Indicators of Compromise
- Unexpected child processes of lrz or lrztar, especially /bin/sh, curl, wget, or scripting interpreters launched during a file transfer.
- ZMODEM/YMODEM transfers in which the received filename contains backticks, $(, ;, |, &, or newline characters.
- Outbound network connections from a terminal session shortly after an inbound rz/lrz transfer begins.
Detection Strategies
- Hunt for process ancestry where lrz or lrztar spawns a shell or network tool, which is anomalous for a transfer utility.
- Alert on command lines containing lrztar combined with shell metacharacters in arguments or environment.
- Correlate SSH or serial session telemetry with new processes that write to user home directories or SSH configuration files during a transfer window.
Monitoring Recommendations
- Enable Linux audit rules for execve events whose parent image matches lrz* and record the full argument vector.
- Track installed lrzsz package versions across the fleet and flag hosts still on versions earlier than 0.13.0.
- Monitor terminal-emulator configurations that auto-invoke rz/lrz on ZMODEM detection and limit this feature to trusted sessions.
How to Mitigate CVE-2026-105841
Immediate Actions Required
- Upgrade lrzsz to version 0.13.0 or later on all systems where the package is installed.
- Inventory hosts that provide lrztar or other suffixed symlinks to lrz and prioritize them for patching.
- Disable automatic ZMODEM reception in terminal emulators until patched builds are deployed.
Patch Information
Upstream has released lrzsz 0.13.0, which addresses the command injection in pipe mode. Refer to the Uwe Ohse lrzsz Release Notes and the Uwe Ohse Software Project for source archives and change history. Distribution maintainers should rebuild downstream packages against this release.
Workarounds
- Remove or rename the lrztar symlink to prevent lrz from entering pipe mode until a patched version is installed.
- Restrict use of lrz/rz to interactive sessions with trusted senders and avoid running them inside automated pipelines.
- Run file transfers inside an unprivileged, sandboxed user account with no access to sensitive credentials or secrets.
# Configuration example: remove the vulnerable pipe-mode entry point
sudo rm -f /usr/bin/lrztar
# Verify the installed lrzsz version is 0.13.0 or newer
lrz --version
# Audit for suffixed symlinks that trigger pipe mode
find / -type l -lname '*lrz*' 2>/dev/null
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

