CVE-2022-22707 Memory corruption in n/a

Medium 5.9 Published Updated

A stack-based buffer overflow in lighttpd's mod_extforward plugin allows remote attackers to cause a denial of service via crafted Forwarded headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-22707?

CVE-2022-22707 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 6 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787

Which versions are affected by CVE-2022-22707?

It affects 2 products.

Linux distribution packages (3)
lighttpd SUSE:Package Hub 15 SP3All versions1.4.64-bp153.2.3.1
lighttpd openSUSE:Leap 15.3All versions1.4.64-bp153.2.3.1
lighttpd openSUSE:TumbleweedAll versions1.4.64-1.1

Products include Debian Debian Linux, Lighttpd Lighttpd.

How do I fix CVE-2022-22707?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-22707 being exploited?

There is no known exploitation of CVE-2022-22707 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-22707, DEBIAN-CVE-2022-22707, DSA-5040-1, GHSA-j3jp-95wp-9q83, MGASA-2022-0161, OESA-2022-1491 and 3 more.

Is CVE-2022-22707 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free