MidnightBSD

Advisories for lighttpd

CVE-2005-0453 MEDIUM

The buffer_urldecode function in Lighttpd 1.3.7 and earlier does not properly handle control characters, which allows remote attackers to obtain the source code for CGI and FastCGI scripts via a URL with a %00 (null) character after the file extension.

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.3.7
CVE-2006-0760 LOW

LightTPD 1.4.8 and earlier, when the web root is on a case-insensitive filesystem, allows remote attackers to bypass URL checks and obtain sensitive information via file extensions with unexpected capitalization, as demonstrated by a request for index.PHP when the configuration invokes the PHP interpreter only for ".php" names.

CVSS 2.0

Severity: LOW

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.1.2
lighttpd lighttpd 1.1.3
lighttpd lighttpd 1.3.11
lighttpd lighttpd 1.4.4
lighttpd lighttpd 1.1.8
lighttpd lighttpd 1.4.1
lighttpd lighttpd 1.2.1
lighttpd lighttpd 1.2.7
lighttpd lighttpd 1.3.8
lighttpd lighttpd 1.3.15
lighttpd lighttpd 1.1.5
lighttpd lighttpd 1.3.0
lighttpd lighttpd 1.3.16
lighttpd lighttpd 1.2.5
lighttpd lighttpd 1.4.8
lighttpd lighttpd 1.2.6
lighttpd lighttpd 1.0.3
lighttpd lighttpd 1.1.1
lighttpd lighttpd 1.1.0
lighttpd lighttpd 1.4.3
lighttpd lighttpd 1.1.9
lighttpd lighttpd 1.1.4
lighttpd lighttpd 1.2.4
lighttpd lighttpd 1.3.6
lighttpd lighttpd 1.4.2
lighttpd lighttpd 1.0.2
lighttpd lighttpd 1.1.7
lighttpd lighttpd 1.3.1
lighttpd lighttpd 1.4.7
lighttpd lighttpd 1.3.10
lighttpd lighttpd 1.3.13
lighttpd lighttpd 1.3.9
lighttpd lighttpd 1.3.14
lighttpd lighttpd 1.3.2
lighttpd lighttpd 1.4.6
lighttpd lighttpd 1.2.8
lighttpd lighttpd 1.1.6
lighttpd lighttpd 1.3.7
lighttpd lighttpd 1.2.0
lighttpd lighttpd 1.2.3
lighttpd lighttpd 1.2.2
lighttpd lighttpd 1.4.5
lighttpd lighttpd 1.3.12
lighttpd lighttpd 1.3.3
lighttpd lighttpd 1.3.4
lighttpd lighttpd 1.3.5
lighttpd lighttpd 1.4.0
CVE-2006-0814 MEDIUM

response.c in Lighttpd 1.4.10 and possibly previous versions, when run on Windows, allows remote attackers to read arbitrary source code via requests that contain trailing (1) "." (dot) and (2) space characters, which are ignored by Windows, as demonstrated by PHP files.

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.1.8
lighttpd lighttpd 1.4.1
lighttpd lighttpd 1.2.1
lighttpd lighttpd 1.2.7
lighttpd lighttpd 1.3.15
lighttpd lighttpd 1.4.8
lighttpd lighttpd 1.2.6
lighttpd lighttpd 1.0.3
lighttpd lighttpd 1.1.0
lighttpd lighttpd 1.3.6
lighttpd lighttpd 1.1.7
lighttpd lighttpd 1.3.1
lighttpd lighttpd 1.4.7
lighttpd lighttpd 1.4.10
lighttpd lighttpd 1.3.9
lighttpd lighttpd 1.3.14
lighttpd lighttpd 1.2.8
lighttpd lighttpd 1.1.6
lighttpd lighttpd 1.3.7
lighttpd lighttpd 1.3.12
lighttpd lighttpd 1.3.3
lighttpd lighttpd 1.4.0
lighttpd lighttpd 1.1.2
lighttpd lighttpd 1.1.3
lighttpd lighttpd 1.3.11
lighttpd lighttpd 1.4.4
lighttpd lighttpd 1.3.8
lighttpd lighttpd 1.1.5
lighttpd lighttpd 1.3.0
lighttpd lighttpd 1.3.16
lighttpd lighttpd 1.2.5
lighttpd lighttpd 1.1.1
lighttpd lighttpd 1.4.3
lighttpd lighttpd 1.1.9
lighttpd lighttpd 1.1.4
lighttpd lighttpd 1.2.4
lighttpd lighttpd 1.4.2
lighttpd lighttpd 1.0.2
lighttpd lighttpd 1.3.10
lighttpd lighttpd 1.3.13
lighttpd lighttpd 1.3.2
lighttpd lighttpd 1.4.6
lighttpd lighttpd 1.2.0
lighttpd lighttpd 1.2.3
lighttpd lighttpd 1.2.2
lighttpd lighttpd 1.4.5
lighttpd lighttpd 1.3.4
lighttpd lighttpd 1.4.9
lighttpd lighttpd 1.3.5
CVE-2010-0295 MEDIUM

lighttpd before 1.4.26, and 1.5.x, allocates a buffer for each read operation that occurs for a request, which allows remote attackers to cause a denial of service (memory consumption) by breaking a request into small pieces that are sent at a slow rate.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-399,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.4.20
lighttpd lighttpd 1.1.8
lighttpd lighttpd 1.2.1
lighttpd lighttpd 1.2.7
lighttpd lighttpd 1.3.15
lighttpd lighttpd 1.4.8
lighttpd lighttpd 1.4.24
lighttpd lighttpd 1.2.6
lighttpd lighttpd 1.0.3
lighttpd lighttpd 1.1.0
lighttpd lighttpd 1.3.6
lighttpd lighttpd *
lighttpd lighttpd 1.1.7
lighttpd lighttpd 1.3.1
lighttpd lighttpd 1.4.7
lighttpd lighttpd 1.4.10
lighttpd lighttpd 1.3.9
lighttpd lighttpd 1.3.14
lighttpd lighttpd 1.4.16
lighttpd lighttpd 1.2.8
lighttpd lighttpd 1.1.6
lighttpd lighttpd 1.4.18
lighttpd lighttpd 1.4.17
lighttpd lighttpd 1.4.13
lighttpd lighttpd 1.4.15
lighttpd lighttpd 1.3.12
lighttpd lighttpd 1.3.3
lighttpd lighttpd 1.4.0
lighttpd lighttpd 1.1.2
lighttpd lighttpd 1.1.3
lighttpd lighttpd 1.3.11
lighttpd lighttpd 1.4.4
lighttpd lighttpd 1.3.8
lighttpd lighttpd 1.1.5
lighttpd lighttpd 1.3.0
lighttpd lighttpd 1.3.16
lighttpd lighttpd 1.4.11
lighttpd lighttpd 1.4.12
lighttpd lighttpd 1.4.14
lighttpd lighttpd 1.2.5
lighttpd lighttpd 1.1.1
lighttpd lighttpd 1.5.0
lighttpd lighttpd 1.4.3
lighttpd lighttpd 1.4.21
lighttpd lighttpd 1.1.9
lighttpd lighttpd 1.1.4
lighttpd lighttpd 1.4.2
lighttpd lighttpd 1.0.2
lighttpd lighttpd 1.3.10
lighttpd lighttpd 1.3.13
lighttpd lighttpd 1.4.23
lighttpd lighttpd 1.3.2
lighttpd lighttpd 1.4.6
lighttpd lighttpd 1.4.19
lighttpd lighttpd 1.2.0
lighttpd lighttpd 1.2.3
lighttpd lighttpd 1.4.22
lighttpd lighttpd 1.2.2
lighttpd lighttpd 1.4.5
lighttpd lighttpd 1.3.4
lighttpd lighttpd 1.4.9
lighttpd lighttpd 1.3.5
CVE-2011-4362 MEDIUM

Integer signedness error in the base64_decode function in the HTTP authentication functionality (http_auth.c) in lighttpd 1.4 before 1.4.30 and 1.5 before SVN revision 2806 allows remote attackers to cause a denial of service (segmentation fault) via crafted base64 input that triggers an out-of-bounds read with a negative index.

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-Other,

Products Affected

Vendor Product Version
debian debian_linux 5.0
lighttpd lighttpd 1.5.0
debian debian_linux 7.0
debian debian_linux 6.0
lighttpd lighttpd *
CVE-2013-1427 LOW

The configuration file for the FastCGI PHP support for lighttpd before 1.4.28 on Debian GNU/Linux creates a socket file with a predictable name in /tmp, which allows local users to hijack the PHP control socket and perform unauthorized actions such as forcing the use of a different version of PHP via a symlink attack or a race condition.

CVSS 2.0

Severity: LOW

Problem Type: CWE-310,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.4.20
lighttpd lighttpd 1.4.4
lighttpd lighttpd 1.3.16
lighttpd lighttpd 1.4.11
lighttpd lighttpd 1.4.12
lighttpd lighttpd 1.4.8
lighttpd lighttpd 1.4.24
lighttpd lighttpd 1.4.25
lighttpd lighttpd 1.4.3
lighttpd lighttpd 1.4.21
lighttpd lighttpd *
lighttpd lighttpd 1.4.26
lighttpd lighttpd 1.4.7
lighttpd lighttpd 1.4.10
lighttpd lighttpd 1.4.23
lighttpd lighttpd 1.4.16
lighttpd lighttpd 1.4.6
lighttpd lighttpd 1.4.19
lighttpd lighttpd 1.4.22
lighttpd lighttpd 1.4.18
lighttpd lighttpd 1.4.13
lighttpd lighttpd 1.4.15
lighttpd lighttpd 1.4.5
lighttpd lighttpd 1.4.9
CVE-2013-4508 MEDIUM

lighttpd before 1.4.34, when SNI is enabled, configures weak SSL ciphers, which makes it easier for remote attackers to hijack sessions by inserting packets into the client-server data stream or obtain sensitive information by sniffing the network.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-326,

Products Affected

Vendor Product Version
debian debian_linux 8.0
debian debian_linux 7.0
opensuse opensuse 13.1
debian debian_linux 6.0
opensuse opensuse 12.2
opensuse opensuse 12.3
lighttpd lighttpd *
CVE-2013-4559 HIGH

lighttpd before 1.4.33 does not check the return value of the (1) setuid, (2) setgid, or (3) setgroups functions, which might cause lighttpd to run as root if it is restarted and allows remote attackers to gain privileges, as demonstrated by multiple calls to the clone function that cause setuid to fail when the user process limit is reached.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-264,

Products Affected

Vendor Product Version
debian debian_linux 8.0
debian debian_linux 7.0
opensuse opensuse 13.1
debian debian_linux 6.0
opensuse opensuse 12.2
opensuse opensuse 12.3
lighttpd lighttpd *
CVE-2013-4560 MEDIUM

Use-after-free vulnerability in lighttpd before 1.4.33 allows remote attackers to cause a denial of service (segmentation fault and crash) via unspecified vectors that trigger FAMMonitorDirectory failures.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-416,

Products Affected

Vendor Product Version
debian debian_linux 8.0
debian debian_linux 7.0
opensuse opensuse 13.1
debian debian_linux 6.0
opensuse opensuse 12.2
opensuse opensuse 12.3
lighttpd lighttpd *
CVE-2014-2323 HIGH

SQL injection vulnerability in mod_mysql_vhost.c in lighttpd before 1.4.35 allows remote attackers to execute arbitrary SQL commands via the host name, related to request_check_hostname.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-89,

Products Affected

Vendor Product Version
debian debian_linux 8.0
suse linux_enterprise_software_development_kit 11
debian debian_linux 7.0
opensuse opensuse 11.4
opensuse opensuse 13.1
debian debian_linux 6.0
opensuse opensuse 12.3
lighttpd lighttpd *
suse linux_enterprise_high_availability_extension 11
CVE-2014-2324 MEDIUM

Multiple directory traversal vulnerabilities in (1) mod_evhost and (2) mod_simple_vhost in lighttpd before 1.4.35 allow remote attackers to read arbitrary files via a .. (dot dot) in the host name, related to request_check_hostname.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-22,

Products Affected

Vendor Product Version
debian debian_linux 8.0
suse linux_enterprise_software_development_kit 11
debian debian_linux 7.0
opensuse opensuse 11.4
opensuse opensuse 13.1
debian debian_linux 6.0
opensuse opensuse 12.3
lighttpd lighttpd *
contec sv-cpt-mc310_firmware *
suse linux_enterprise_high_availability_extension 11
CVE-2015-3200 MEDIUM

mod_auth in lighttpd before 1.4.36 allows remote attackers to inject arbitrary log entries via a basic HTTP authentication string without a colon character, as demonstrated by a string containing a NULL and new line character.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-74,

Products Affected

Vendor Product Version
oracle solaris 11.3
hp virtual_customer_access_system *
lighttpd lighttpd *
CVE-2018-19052 MEDIUM

An issue was discovered in mod_alias_physical_handler in mod_alias.c in lighttpd before 1.4.50. There is potential ../ path traversal of a single directory above an alias target, with a specific mod_alias configuration where the matched alias lacks a trailing '/' character, but the alias target filesystem path does have a trailing '/' character.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-22,

Products Affected

Vendor Product Version
suse suse_linux_enterprise_server 12
opensuse leap 15.1
suse suse_linux_enterprise_server 11
debian debian_linux 9.0
opensuse leap 15.0
opensuse backports_sle 15.0
lighttpd lighttpd *
CVE-2019-11072 HIGH

lighttpd before 1.4.54 has a signed integer overflow, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a malicious HTTP GET request, as demonstrated by mishandling of /%2F? in burl_normalize_2F_to_slash_fix in burl.c. NOTE: The developer states "The feature which can be abused to cause the crash is a new feature in lighttpd 1.4.50, and is not enabled by default. It must be explicitly configured in the config file (e.g. lighttpd.conf). Certain input will trigger an abort() in lighttpd when that feature is enabled. lighttpd detects the underflow or realloc() will fail (in both 32-bit and 64-bit executables), also detected in lighttpd. Either triggers an explicit abort() by lighttpd. This is not exploitable beyond triggering the explicit abort() with subsequent application exit.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-190,

Products Affected

Vendor Product Version
lighttpd lighttpd *
CVE-2022-22707 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H 2.2 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-787,

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
lighttpd lighttpd *
CVE-2022-30780 MEDIUM

Lighttpd 1.4.56 through 1.4.58 allows a remote attacker to cause a denial of service (CPU consumption from stuck connections) because connection_read_header_more in connections.c has a typo that disrupts use of multiple read operations on large headers.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-682,

Products Affected

Vendor Product Version
lighttpd lighttpd 1.4.58
lighttpd lighttpd 1.4.57
lighttpd lighttpd 1.4.56
CVE-2022-37797

In lighttpd 1.4.65, mod_wstunnel does not initialize a handler function pointer if an invalid HTTP request (websocket handshake) is received. It leads to null pointer dereference which crashes the server. It could be used by an external attacker to cause denial of service condition.

Products Affected

Vendor Product Version
lighttpd lighttpd 1.4.65
debian debian_linux 10.0
CVE-2022-41556

A resource leak in gw_backend.c in lighttpd 1.4.56 through 1.4.66 could lead to a denial of service (connection-slot exhaustion) after a large amount of anomalous TCP behavior by clients. It is related to RDHUP mishandling in certain HTTP/1.1 chunked situations. Use of mod_fastcgi is, for example, affected. This is fixed in 1.4.67.

Products Affected

Vendor Product Version
fedoraproject fedora 35
lighttpd lighttpd *
CVE-2025-12642

lighttpd1.4.80 incorrectly merged trailer fields into headers after http request parsing. This behavior can be exploited to conduct HTTP Header Smuggling attacks. Successful exploitation may allow an attacker to: * Bypass access control rules * Inject unsafe input into backend logic that trusts request headers * Execute HTTP Request Smuggling attacks under some conditions This issue affects lighttpd1.4.80

Products Affected

Vendor Product Version
lighttpd lighttpd 1.4.80