CVE-2022-22707 is a 4-byte stack out-of-bounds write in the mod_extforward module of lighttpd 1.4.46 through 1.4.63, reachable only when the module is set to parse the Forwarded header; it can crash 32-bit builds. NVD scores it 5.9; lighttpd 1.4.64 fixes it, and Crestron states its devices are not affected.
Vulnerability summary
CVSS base score
5.9
Medium severity
EPSS score (FIRST)
9.7%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2022-22707 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| lighttpd (mod_extforward) | cpe:2.3:a:lighttpd:lighttpd:*:*:*:*:*:*:*:* | 1.4.46 through 1.4.63 (NVD); fixed in 1.4.64 |
| Wind River Linux LTS 19 (lighttpd package) | — | found in 10.19.45.1, fixed in 10.19.45.21 (Wind River LIN1019-7623) |
| OpenWrt packages feed, openwrt-21.02 branch (lighttpd) | — | 1.4.59 to 1.4.63; 1.4.64 merged 2022-01-24 |
What does this mean for affected devices?
CVE-2022-22707 is an out-of-bounds write (CWE-787) in mod_extforward_Forwarded. NVD's record says lighttpd 1.4.46 through 1.4.63 has "a stack-based buffer overflow (4 bytes representing -1)", shown as a remote denial of service "in a non-default configuration", and that "a 32-bit system is much more likely to be affected than a 64-bit system". NVD scores it 5.9 with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The fix commit, dated 2022-01-05, narrows the conditions. The bug is reachable only when mod_extforward is enabled and configured to accept the RFC 7239 "Forwarded" header from a trusted proxy, and it "is not believed to be exploitable in any way beyond triggering a crash" of a server built 32-bit with -fstack-protector-strong or -fstack-protector-all. lighttpd's 1.4.64 release notes, dated 2022-01-19, list "CVE-2022-22707 (rare configs)" among the important changes.
That 32-bit condition is why the flaw matters for firmware: lighttpd ships on many 32-bit ARM and MIPS devices. Three published sources show where it lands. Wind River's defect LIN1019-7623 lists Wind River Linux LTS 19, found in 10.19.45.1 and fixed in 10.19.45.21. The OpenWrt packages feed for the 21.02 release line carried lighttpd 1.4.59 to 1.4.63 until commit 48bf1a0 moved it to 1.4.64 on 2022-01-24. Crestron's security advisory, dated 2022-05-17, states that "Crestron devices are not affected because they do not utilize the vulnerable configurations", a device maker's not-affected decision based on configuration rather than version. Our embedded web server vulnerabilities guide uses this CVE as its example of checking whether a module is loaded before treating a version match as a finding.
The Debian tracker lists DSA-5040-1 with 1.4.53-4+deb10u2 for buster and 1.4.59-1+deb11u1 for bullseye, and marks stretch as not affected because the code came later. The CVE is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13); FIRST EPSS gives it 0.0966, the 95.6th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).
Move lighttpd to 1.4.64 or later. If a device does not load mod_extforward, or does not set it to parse "Forwarded", record that in a VEX statement as Crestron did, rather than leaving a version match open. Our memory corruption fix guide covers stack writes of this kind, and CVE-2018-19052 is another configuration-dependent lighttpd flaw.
Evidence
- lighttpd 1.4.46-1.4.63 mod_extforward_Forwarded 4-byte stack overflow, DoS in non-default config, 32-bit more likely; NVD CVSS v3.1 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H); CWE-787. — NVD
- Fix commit 8c62a89 (2022-01-05): reachable only with mod_extforward parsing Forwarded from a trusted proxy; crash only on 32-bit builds with -fstack-protector-strong/-all. — lighttpd commit 8c62a89
- 1.4.64 released 2022-01-19 with "CVE-2022-22707 (rare configs)". — lighttpd 1.4.64 release notes
- Crestron devices are not affected because they do not use the vulnerable configurations (advisory dated 2022-05-17). — Crestron security advisory
- Wind River Linux LTS 19: found in 10.19.45.1, fixed in 10.19.45.21. — Wind River LIN1019-7623
- openwrt-21.02 packages branch moved lighttpd to 1.4.64 on 2022-01-24 (from 1.4.59-1.4.63). — OpenWrt packages commit 48bf1a0
- DSA-5040-1: buster 1.4.53-4+deb10u2, bullseye 1.4.59-1+deb11u1; stretch not affected. — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.09662 (95.6th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
- NVD
- lighttpd commit 8c62a89: [mod_extforward] fix out-of-bounds (OOB) write
- lighttpd 1.4.64 release notes
- Crestron: CVE-2022-22707 Lighttpd Denial-of-Service
- Wind River LIN1019-7623: Security Advisory - lighttpd - CVE-2022-22707
- OpenWrt packages commit 48bf1a0: lighttpd 1.4.64 for openwrt-21.02
- Debian Security Tracker
- CISA KEV
- FIRST EPSS
Frequently asked questions
Which configuration does CVE-2022-22707 need?
mod_extforward must be loaded and configured to accept and parse the RFC 7239 "Forwarded" header from a trusted proxy, which is not the default. The crash shows mainly on 32-bit builds compiled with -fstack-protector-strong or -fstack-protector-all (per the lighttpd fix commit and NVD).
Which lighttpd versions fix CVE-2022-22707?
Upstream lighttpd 1.4.64, released 2022-01-19. Debian fixed it in DSA-5040-1, and Wind River Linux LTS 19 in 10.19.45.21 (per the lighttpd release notes, the Debian tracker and Wind River LIN1019-7623).
Are Crestron devices affected by CVE-2022-22707?
Crestron states that its devices are not affected because they do not use the vulnerable configurations (per the Crestron security advisory dated 2022-05-17).
Is CVE-2022-22707 known to be exploited?
It is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0966, the 95.6th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?