CVE-2022-22707: Buffer Overflow

Published Jan 6, 2022
·
Updated

In lighttpd 1.4.46 through 1.4.63, the modextforwardForwarded function of the modextforward 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.

Affected Software

19 affected componentsFixes available
Lighttpd Lighttpd>=1.4.46<=1.4.63
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/lighttpd<1.4.64-1
1.4.64-1
debian/lighttpd<1.4.64-1
1.4.64-1
debian/lighttpd<1.4.64-1
1.4.64-1
debian/lighttpd
1.4.69-11.4.79-21.4.85-1
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0
alpine/lighttpd>=1.4.46<1.4.64-r0
1.4.64-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/lighttpd to a version that resolves this vulnerability.

    Fixed in 1.4.69-1Fixed in 1.4.79-2Fixed in 1.4.85-1
  2. Upgrade

    Upgrade alpine/lighttpd to a version that resolves this vulnerability.

    Fixed in 1.4.64-r0
  3. Upgrade

    Upgrade debian/lighttpd to a version that resolves this vulnerability.

    Fixed in 1.4.64-1

Event History

Jan 6, 2022
CVE Published
via MITRE·05:55 AM
Data Sourced
via MITRE·05:55 AM
Description
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2022-22707.

2

What is the severity of CVE-2022-22707?

The severity of CVE-2022-22707 is medium.

3

What is the affected software?

The affected software is lighttpd version 1.4.46 through 1.4.63.

4

How does CVE-2022-22707 affect lighttpd?

CVE-2022-22707 affects lighttpd by causing a stack-based buffer overflow in the mod_extforward plugin, resulting in a remote denial of service.

5

How can I fix CVE-2022-22707?

To fix CVE-2022-22707, you should update lighttpd to version 1.4.69-1 or apply the appropriate patches provided by the vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203