CVE-2022-22707
In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.9
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.
- Record
CVE-2022-22707- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-22707- Updated
- 2026-11-02
EUVDEUVD-2022-27850 No score
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.
- Record
EUVD-2022-27850- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-j3jp-95wp-9q83 No score
In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward...
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), as demonstrated by remote denial of service (daemon crash).
- Record
GHSA-j3jp-95wp-9q83- Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-22707
5.9
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.
- Record
ALPINE-CVE-2022-22707- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSVDEBIAN-CVE-2022-22707
5.9
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.
- Record
DEBIAN-CVE-2022-22707- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
Show 7 moreShow less
OSVOESA-2022-1491
5.9
lighttpd security update
Secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make it the perfect webserver-software for every server that is suffering load problems.
Security Fix(es):
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.(CVE-2022-22707)
- Record
OESA-2022-1491- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-22707
5.9
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.
- Record
UBUNTU-CVE-2022-22707- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2022-22707- Updated
- 2026-11-02
OSVMGASA-2022-0161 No score
Updated lighttpd packages fix security vulnerability
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. (CVE-2022-22707)
- Record
MGASA-2022-0161- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:0024-1 No score
Security update for lighttpd
This update for lighttpd fixes the following issues:
lighttpd was updated to 1.4.64:
- CVE-2022-22707: off-by-one stack overflow in the mod_extforward plugin (boo#1194376)
- graceful restart/shutdown timeout changed from 0 (disabled) to 8 seconds. configure an alternative with: server.feature-flags += (“server.graceful-shutdown-timeout” => 8)
- deprecated modules (previously announced) have been removed: mod_authn_mysql, mod_mysql_vhost, mod_cml, mod_flv_streaming, mod_geoip, mod_trigger_b4_dl
update to 1.4.63:
- import xxHash v0.8.1
- fix reqpool mem corruption in 1.4.62
includes changes in 1.4.62:
- [mod_alias] fix use-after-free bug
- many developer visible bug fixes
update to 1.4.61:
- mod_dirlisting: sort '../' to top
- fix HTTP/2 upload > 64k w/ max-request-size
- code level and developer visible bug fixes
update to 1.4.60:
- HTTP/2 smoother and lower memory use (in general)
- HTTP/2 tuning to better handle aggressive client initial requests
- reduce memory footprint; workaround poor glibc behavior; jemalloc is better
- mod_magnet lua performance improvements
- mod_dirlisting performance improvements and new caching option
- memory constraints for extreme edge cases in mod_dirlisting, mod_ssi, mod_webdav
- connect(), write(), read() time limits on backends (separate from client timeouts)
- lighttpd restarts if large discontinuity in time occurs (embedded systems)
- RFC7233 Range support for all non-streaming responses, not only static files
- connect() to backend now has default 8 second timeout (configurable)
- Added hardening to systemd service(s) (boo#1181400).
update to 1.4.59:
- HTTP/2 enabled by default
- mod_deflate zstd suppport
- new mod_ajp13
Update to 1.4.58:
- [mod_wolfssl] use wolfSSL TLS version defines
- [mod_wolfssl] compile with earlier wolfSSL vers
- [core] prefer IPv6+IPv4 func vs IPv4-specific func
- [core] reuse large mem chunks (fix mem usage) (fixes #3033)
- [core] add comment for FastCGI mem use in hctx->rb (#3033)
- [mod_proxy] fix sending of initial reqbody chunked
- [multiple] fdevent_waitpid() wrapper
- [core] sys-time.h - localtime_r,gmtime_r macros
- [core] http_date.[ch] encapsulate HTTP-date parse
- [core] specialized strptime() for HTTP date fmts
- [multiple] employ http_date.h, sys-time.h
- [core] http_date_timegm() (portable timegm())
- buffer_append_path_len() to join paths
- [core] inet_ntop_cache -> sock_addr_cache
- [multiple] etag.[ch] -> http_etag.[ch]; better imp
- [core] fix crash after specific err in config file
- [core] fix bug in FastCGI uploads (#3033)
- [core] http_response_match_if_range()
- [mod_webdav] typedef off_t loff_t for FreeBSD
- [multiple] chunkqueue_write_chunk()
- [build] add GNUMAKEFLAGS=--no-print-directory
- [core] fix bug in read retry found by coverity
- [core] attempt to quiet some coverity warnings
- [mod_webdav] compile fix for Mac OSX/11
- [core] handle U+00A0 in config parser
- [core] fix lighttpd -1 one-shot with pipes
- [core] quiet start/shutdown trace in one-shot mode
- [core] allow keep-alives in one-shot mode (#3042)
- [mod_webdav] define _ATFILE_SOURCE if AT_FDCWD
- [core] setsockopt IPV6_V6ONLY if server.v4mapped
- [core] prefer inet_aton() over inet_addr()
- [core] add missing mod_wolfssl to ssl compat list
- [mod_openssl] remove ancient preprocessor logic
- [core] SHA512_Init, SHA512_Update, SHA512_Final
- [mod_wolfssl] add complex preproc logic for SNI
- [core] wrap a macro value with parens
- [core] fix handling chunked response from backend (fixes #3044)
- [core] always set file.fd = -1 on FILE_CHUNK reset (fixes #3044)
- [core] skip some trace if backend Upgrade (#3044)
- [TLS] cert-staple.sh POSIX sh compat (fixes #3043)
- [core] portability fix if st_mtime not defined
- [mod_nss] portability fix
- [core] warn if mod_authn_file needed in conf
- [core] fix chunked decoding from backend (fixes #3044)
- [core] reject excess data after chunked encoding (#3046)
- [core] track chunked encoding…
- Record
openSUSE-SU-2022:0024-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11764-1 No score
lighttpd-1.4.64-1.1 on GA media
These are all security issues fixed in the lighttpd-1.4.64-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11764-1- Updated
- 2026-11-02
OSVUSN-5903-1 No score
lighttpd vulnerabilities
It was discovered that lighttpd incorrectly handled certain inputs, which could result in a stack buffer overflow. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2022-22707, CVE-2022-41556)
- Record
USN-5903-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lighttpdAlpine:v3.13 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.14 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.15 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.16 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.17 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.18 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.19 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.20 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.21 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.22 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
lighttpdAlpine:v3.23 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdAlpine:v3.24 |
1.4.46 up to 1.4.64-r0 | 1.4.64-r0 |
lighttpdDebian:12 |
before 1.4.64-1 | 1.4.64-1 |
lighttpdDebian:13 |
before 1.4.64-1 | 1.4.64-1 |
lighttpdDebian:14 |
before 1.4.64-1 | 1.4.64-1 |
lighttpdDebian:10 |
before 1.4.53-4+deb10u2, plus listed versions 1.4.53-41.4.53-4+deb10u11.4.53-4+deb10u1~bpo9+1 |
1.4.53-4+deb10u2 |
lighttpdDebian:11 |
before 1.4.59-1+deb11u1, plus listed versions 1.4.59-1 |
1.4.59-1+deb11u1 |
lighttpdMageia:8 |
before 1.4.59-1.1.mga8 | 1.4.59-1.1.mga8 |
lighttpdopenEuler:20.03-LTS-SP1 |
before 1.4.53-2.oe1 | 1.4.53-2.oe1 |
lighttpdopenEuler:20.03-LTS-SP2 |
before 1.4.53-2.oe1 | 1.4.53-2.oe1 |
lighttpdopenEuler:20.03-LTS-SP3 |
before 1.4.53-2.oe1 | 1.4.53-2.oe1 |
lighttpdUbuntu:20.04:LTS |
before 1.4.55-1ubuntu1.20.04.2, plus listed versions 1.4.53-4ubuntu21.4.54-2ubuntu11.4.55-1ubuntu11.4.55-1ubuntu1.20.04.1 |
1.4.55-1ubuntu1.20.04.2 |
lighttpdUbuntu:22.04:LTS |
before 1.4.63-1ubuntu3.1, plus listed versions 1.4.59-1ubuntu21.4.59-1ubuntu31.4.63-1ubuntu11.4.63-1ubuntu21.4.63-1ubuntu3 |
1.4.63-1ubuntu3.1 |
lighttpdSUSE:Package Hub 15 SP3 |
before 1.4.64-bp153.2.3.1 | 1.4.64-bp153.2.3.1 |
lighttpdopenSUSE:Leap 15.3 |
before 1.4.64-bp153.2.3.1 | 1.4.64-bp153.2.3.1 |
lighttpdopenSUSE:Tumbleweed |
before 1.4.64-1.1 | 1.4.64-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-22707 is a medium vulnerability (CVSS 5.9) in Lighttpd, published January 6, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 9.66%, the 95th percentile. Fixed in lighttpd 1.4.64-r0.
References
redmine.lighttpd.net/issues/3134
debian.org/security/2022/dsa-5040
nvd.nist.gov/vuln/detail/CVE-2022-22707
github.com/advisories/GHSA-j3jp-95wp-9q83
security.alpinelinux.org/vuln/CVE-2022-22707
github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22707.json
Show 13 moreShow less
security-tracker.debian.org/tracker/CVE-2022-22707
advisories.mageia.org/MGASA-2022-0161.html
bugs.mageia.org/show_bug.cgi?id=29877
lists.opensuse.org/archives/list/[email protected]/thread/6P5G6MJW4Q5RKKPO7TS5CLAAEQ2QUYBE
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1491
ubuntu.com/security/CVE-2022-22707
ubuntu.com/security/notices/USN-5903-1
cve.org/CVERecord?id=CVE-2022-22707
ubuntu.com/security/CVE-2022-41556
bugzilla.suse.com/1146452
bugzilla.suse.com/1181400
bugzilla.suse.com/1194376
suse.com/security/cve/CVE-2022-22707
Left out here: the rest of 1 source description. The JSON record has them.