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).

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-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026
CVE-2026-22184MEDIUM4.6
  • NixOSNixOS
  • java-1.8.0-openjdk-demo
NoYesJan 07, 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