Description
An issue was discovered in mod_alias_physical_handler in mod_alias.c in lighttpd before 1.4.50. There is potential ../ path traversal of a single directory above an alias target, with a specific mod_alias configuration where the matched alias lacks a trailing '/' character, but the alias target filesystem path does have a trailing '/' character.
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 | lighttpd | 1.4.52-1 | — |
| Debian 13 | lighttpd | 1.4.52-1 | — |
| Debian 12 | lighttpd | 1.4.52-1 | — |
| Debian 9 | lighttpd | 1.4.45-1+deb9u1 | DLA-2887-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | lighttpd | 1.4.45-1ubuntu3.18.04.1+esm1 | USN-4775-1 |
| Ubuntu Pro 16.04 LTS | lighttpd | 1.4.35-4ubuntu2.1+esm1 | USN-4775-1 |
| Ubuntu Pro 14.04 LTS | lighttpd | 1.4.33-1+nmu2ubuntu2.1+esm1 | USN-4775-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | lighttpd | 1.4.54-bp151.4.3.1 | openSUSE-SU-2019:2347-1 |
| SUSE Package Hub 15 | lighttpd | 1.4.54-bp151.4.3.1 | openSUSE-SU-2019:2347-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lighttpd | 1.4.59-2.1 | openSUSE-SU-2024:10585-1 |
| openSUSE Leap 15.1 | lighttpd | 1.4.54-bp151.4.3.1 | openSUSE-SU-2019:2347-1 |
| openSUSE Leap 15.0 | lighttpd | 1.4.54-bp151.4.3.1 | openSUSE-SU-2019:2347-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
iveresk/cve-2018-19052 ★ 1 · Jul 15, 2022
PoC for a security: potential path traversal with specific configs, if `mod_dirlisting` were enabled, which is not the default, this would result in listing the contents of the directory above the al…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 4
- USN-4775-1 lighttpd vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-2887-1 lighttpd - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2019:2347-1 Security update for lighttpd SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10585-1 lighttpd-1.4.59-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026