Description
In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward plugin has a stack-based buffer overflow (4 bytes representing -1), as demonstrated by remote denial of service (daemon crash) in a non-default configuration. The non-default configuration requires handling of the Forwarded header in a somewhat unusual manner. Also, a 32-bit system is much more likely to be affected than a 64-bit system.
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.64-1 | — |
| Debian 13 | lighttpd | 1.4.64-1 | — |
| Debian 12 | lighttpd | 1.4.64-1 | — |
| Debian 11 | lighttpd | 1.4.59-1+deb11u1 | DSA-5040-1 |
| Debian 10 | lighttpd | 1.4.53-4+deb10u2 | DSA-5040-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | lighttpd | 1.4.63-1ubuntu3.1 | USN-5903-1 |
| Ubuntu 20.04 LTS | lighttpd | 1.4.55-1ubuntu1.20.04.2 | USN-5903-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP3 | lighttpd | 1.4.64-bp153.2.3.1 | openSUSE-SU-2022:0024-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lighttpd | 1.4.64-1.1 | openSUSE-SU-2024:11764-1 |
| openSUSE Leap 15.3 | lighttpd | 1.4.64-bp153.2.3.1 | openSUSE-SU-2022:0024-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.23 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.22 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.21 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.20 | lighttpd | 1.4.64-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.18 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.17 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.16 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.15 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.14 | lighttpd | 1.4.64-r0 | — |
| Alpine v3.13 | lighttpd | 1.4.64-r0 | — |
Advisories 5
- USN-5903-1 lighttpd vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5040-1 lighttpd - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11764-1 lighttpd-1.4.64-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0024-1 Security update for lighttpd SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0506 lighttpd: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Feb 28, 2023
References
- https://redmine.lighttpd.net/issues/3134
- DSA-5040 vendor-advisory