CVE-2018-10916
It has been discovered that lftp up to and including version 4.8.3 does not properly sanitize remote file names, leading to a loss of integrity on the local system when reverse mirroring is used. A remote attacker may trick a user to use reverse mirroring on an attacker controlled FTP server, resulting in the removal of all files in the current working directory of the victim's system.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | lftp | Fixed | 4.8.1-1ubuntu0.1 | UBUNTU-CVE-2018-10916 |
| Ubuntu 16.04 | lftp | Fixed | 4.6.3a-1ubuntu0.1 | UBUNTU-CVE-2018-10916 |
| Ubuntu 14.04 | lftp | Fixed | 4.4.13-1ubuntu0.1 | UBUNTU-CVE-2018-10916 |
| Debian 14 | lftp | Fixed | 4.8.4-1 | DEBIAN-CVE-2018-10916 |
| Debian 13 | lftp | Fixed | 4.8.4-1 | DEBIAN-CVE-2018-10916 |
| Debian 12 | lftp | Fixed | 4.8.4-1 | DEBIAN-CVE-2018-10916 |
| Red Hat Enterprise Linux 8 | lftp | Not affected | ||
| Red Hat Enterprise Linux 8 | lftp-scripts | Not affected | ||
| Red Hat Enterprise Linux 7 | lftp | Fixed | 0:4.4.8-12.el7 | RHSA-2020:1045 |
| Red Hat Enterprise Linux 7 | lftp-scripts | Fixed | 0:4.4.8-12.el7 | RHSA-2020:1045 |
| Red Hat Enterprise Linux 6 | lftp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | lftp-scripts | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | lftp | Not affected | ||
| Alpine Linux 3.24 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.23 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.22 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.21 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.20 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.19 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.18 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.17 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.16 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.15 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.14 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.13 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.12 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.11 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.10 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
| Alpine Linux 3.9 | lftp | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-10916 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- [UNKNOWN] lftp: affected: up to and including 4.8.3
Vendor advisories:
- https://usn.ubuntu.com/3731-2/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00036.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00010.html (vendor-advisory)
References
- https://github.com/lavv17/lftp/issues/452
- https://usn.ubuntu.com/3731-2/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10916
- https://github.com/lavv17/lftp/commit/a27e07d90a4608ceaf928b1babb27d4d803e1992
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00036.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00010.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.