OESA-2026-4986: lrzsz security update
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols. lrzsz is a heavily rehacked version of the last public domain release of Omen Technologies rzsz package. Security Fix(es):
lrzsz before 0.13.0 contains a path traversal vulnerability in the lrz receive utility's restricted mode that allows malicious ZMODEM senders to write files outside the current directory using absolute pathnames. Because checkpath() in src/lrz.c only rejects '../' sequences unless built with --enable-pubdir, attackers can send files named with absolute paths to overwrite any file writable by the receiving user.(CVE-2026-105840)
lrzsz before 0.13.0 contains a heap-based buffer overflow vulnerability in procheader() of the lrz receive utility when copying overlong sender-supplied filenames into Pathname. Malicious ZMODEM senders can supply filenames up to 8192 bytes, overflowing the buffer via sprintf() in pipe mode or strcpy() to corrupt heap memory and crash lrz.(CVE-2026-105842)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
openeuler/lrzszto a version that resolves this vulnerability.Fixed in 0.13.1-1.oe2203sp4 - Upgrade
Upgrade
lrzszto a version that resolves this vulnerability.Fixed in 0.13.0
Event History
Frequently Asked Questions
Which deployments are exposed to the path traversal issue?
Deployments using the lrz receive utility in restricted mode are exposed when they receive files from a malicious ZMODEM sender. The issue affects versions before 0.13.0 and permits absolute-path filenames to write outside the current directory, including overwriting files writable by the receiving user.
What does an attacker need to exploit the buffer overflow?
An attacker needs to act as a ZMODEM sender and provide an overlong filename to lrz. Filenames of up to 8192 bytes can overflow the Pathname buffer in pipe mode, corrupting heap memory and crashing lrz.
How can I determine whether my installation is affected?
The listed issues affect lrzsz versions before 0.13.0. Check the installed lrzsz version and whether lrz is used to receive ZMODEM transfers; restricted mode is relevant to the path traversal issue, while pipe mode is relevant to the heap overflow.