CVE-2022-22707
NixOS vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-22707) affects lighttpd versions 1.4.46 through 1.4.63, specifically in the mod_extforward_Forwarded function of the mod_extforward plugin. The issue involves a stack-based buffer overflow of 4 bytes representing -1, which can lead to a remote denial of service through daemon crash. This vulnerability only manifests in non-default configurations where the Forwarded header is handled in an unusual manner, and 32-bit systems are significantly more susceptible than 64-bit systems (NVD).

Technical details

The vulnerability exists in the mod_extforward plugin's handling of the Forwarded header. The bug specifically occurs when the mod_extforward_Forwarded function processes certain inputs, resulting in a 4-byte out-of-bounds write of value '-1' to the stack. The issue is more likely to manifest on 32-bit systems with specific compiler flags enabled, particularly when built with -fstack-protector-strong or -fstack-protector-all. The vulnerability has been assigned a CVSS v3.1 base score of 5.9 (Medium) with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The primary impact of this vulnerability is the potential for remote attackers to cause a denial of service by crashing the lighttpd daemon. The impact is limited to specific configurations and is more pronounced on 32-bit systems. The vulnerability does not appear to allow for code execution or information disclosure (Lighttpd Issue).

Exploitability

Exploitation requires specific conditions to be met: the target must be using mod_extforward (not default), must explicitly configure extforward.headers to contain 'Forwarded' (not default), and must trust the upstream proxy server which proxies the request to lighttpd. Additionally, the server must be running on a 32-bit system with specific compiler protections enabled (Lighttpd Issue).

Mitigation and workarounds

The vulnerability has been fixed in multiple distributions. Debian has addressed the issue in version 1.4.53-4+deb10u2 for oldstable (buster) and version 1.4.59-1+deb11u1 for stable (bullseye). Users are recommended to upgrade their lighttpd packages to the latest version (Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management