REDHAT-BUG-2546595: Command Injection
lrzsz before 0.13.0 contains an OS command injection vulnerability in the lrz receive utility's pipe mode that allows remote senders to execute commands by supplying crafted filenames. When lrz runs under a suffixed name such as lrztar, procheader() in src/lrz.c passes the unescaped ZMODEM/YMODEM filename to popen(), so shell metacharacters execute as the receiving user.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lrzszto a version that resolves this vulnerability.Fixed in 0.13.0
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using lrzsz versions before 0.13.0 are exposed when the lrz receive utility is used in pipe mode under a suffixed name such as lrztar.
What does an attacker need to exploit the vulnerability?
An attacker must be able to act as a remote sender and supply a crafted filename through ZMODEM or YMODEM. Shell metacharacters in that filename can be interpreted when lrz passes it to popen().
What privileges would successful command execution have?
Commands execute as the user running the receiving lrz process.
How can I determine whether a deployment may be affected?
Check whether the installed lrzsz version is earlier than 0.13.0, and whether lrz is invoked in pipe mode using a suffixed executable name such as lrztar.