Out-of-bounds read in lighttpd - CVE-2022-22707

 

Out-of-bounds read in lighttpd - CVE-2022-22707

Published: January 12, 2022 / Updated: January 20, 2022


Vulnerability identifier: #VU59537
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-22707
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary condition in the mod_extforward_Forwarded function of the mod_extforward plugin. A remote attacker can send a specially crafted request to the web server, trigger an out-of-bounds read error and perform a denial of service attack.

Successful exploitation of the vulnerability requires a non-default configuration for handling of the Forwarded header.


Affected software

lighttpd
lighttpd (Debian package)
lighttpd
lighttpd-mod_authn_mysql
lighttpd-fastcgi
lighttpd-mod_authn_gssapi
lighttpd-mod_authn_pam
lighttpd-mod_mysql_vhost
lighttpd-debuginfo
lighttpd-debugsource
lighttpd-filesystem
lighttpd (Ubuntu package)
openEuler
Ubuntu

How to mitigate CVE-2022-22707

Install update from vendor's website.

lighttpd - update to 1.4.64
lighttpd - update to 1.4.53-2
lighttpd-mod_authn_mysql - update to 1.4.53-2
lighttpd-fastcgi - update to 1.4.53-2
lighttpd-mod_authn_gssapi - update to 1.4.53-2
lighttpd-mod_authn_pam - update to 1.4.53-2
lighttpd-mod_mysql_vhost - update to 1.4.53-2
lighttpd-debuginfo - update to 1.4.53-2
lighttpd-debugsource - update to 1.4.53-2
lighttpd-filesystem - update to 1.4.53-2
lighttpd (Ubuntu package) - addressed in versions 1.4.55-1ubuntu1.20.04.2, 1.4.63-1ubuntu3.1, 1.4.65-2ubuntu1.1

External References

Related Security Bulletins