Description
mirror --script in lftp before 3.5.9 does not properly quote shell metacharacters, which might allow remote user-assisted attackers to execute shell commands via a malicious script. NOTE: it is not clear whether this issue crosses security boundaries, since the script already supports commands such as "get" which could overwrite executable files.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lftp | 3.5.9-1 | — |
| Debian 13 | lftp | 3.5.9-1 | — |
| Debian 12 | lftp | 3.5.9-1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | lftp | 3.7.11-4.el5 | RHSA-2009:1278 |
Advisories 1
- RHSA-2009:1278 Red Hat Security Advisory: lftp security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- 36559 third-party-advisory
- ADV-2007-1590 vdb-entry
- https://issues.rpath.com/browse/RPL-1229
- http://bugs.gentoo.org/show_bug.cgi?id=173524
- 25107 third-party-advisory
- RHSA-2009:1278 vendor-advisory
- 23736 vdb-entry
- http://lftp.yar.ru/news.html
- 25132 third-party-advisory
- oval:org.mitre.oval:def:10806 vdb-entry signature