← Vulnerability feed

Vulnerability record · CVE-2014-2323 · published 14 March 2014

CVE-2014-2323: lighttpd mod_mysql_vhost SQL injection via host name

Lighttpd · Lighttpd

lighttpd before 1.4.35 contains a SQL injection flaw in mod_mysql_vhost.c, specifically in request_check_hostname, where the HTTP host name is passed into SQL without proper sanitization. Because the host header is attacker-controlled and the module uses it to look up virtual host configuration in a database, this exposes the backend database to arbitrary SQL execution.

9.8 CVSS 3.1 Critical EPSS 63% · top 0.8% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
63%EPSS exploitation probability, 30 days
NoNot in CISA KEV
5Affected product versions listed by NVD
24References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityCVSS 3.1 base score is 9.8 (critical) with network reachability, no privileges and no user interaction, and public exploit references exist.

What it is

lighttpd before 1.4.35 contains a SQL injection flaw in mod_mysql_vhost.c, specifically in request_check_hostname, where the HTTP host name is passed into SQL without proper sanitization. Because the host header is attacker-controlled and the module uses it to look up virtual host configuration in a database, this exposes the backend database to arbitrary SQL execution.

Impact

An unauthenticated remote attacker can execute arbitrary SQL commands against the database backing mod_mysql_vhost, potentially reading, modifying or deleting data and, depending on database privileges, escalating further.

Attack surface

Reached over the network by sending a crafted Host header in an HTTP request to a lighttpd instance that has mod_mysql_vhost enabled; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV and no ransomware usage is documented, but EPSS is high (0.62752, 99.157th percentile) and multiple references are tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade lighttpd to 1.4.35 or later, which contains the fix referenced in the vendor advisory and patch link.
  • If mod_mysql_vhost is not required, disable or remove it to eliminate the attack path.
  • Apply the vendor and distribution patches (Debian DSA-2877, openSUSE/SUSE advisories) where upgrading is not immediately possible.
  • Restrict the database account used by mod_mysql_vhost to the minimum privileges needed for host lookups.
  • Validate or normalize the Host header at a reverse proxy or WAF in front of lighttpd as a compensating control.

Detection

  • Inspect HTTP Host headers for SQL metacharacters (quotes, comment sequences, UNION, stacked queries) reaching lighttpd.
  • Monitor database logs for anomalous queries or errors originating from the web server host.
  • Alert on lighttpd versions below 1.4.35 in asset inventories or banner checks.
  • Review mod_mysql_vhost configuration and database account permissions for unexpected changes.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

5 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://download.lighttpd.net/lighttpd/security/lighttpd_sa_2014_01.txt ExploitVendor Advisory
http://jvn.jp/en/jp/JVN37417423/index.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-03/msg00023.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-04/msg00002.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-04/msg00006.html Mailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=141576815022399&w=2 Mailing ListThird Party Advisory
http://seclists.org/oss-sec/2014/q1/561 ExploitMailing ListThird Party Advisory
http://seclists.org/oss-sec/2014/q1/564 Mailing ListThird Party Advisory
http://secunia.com/advisories/57404 Broken Link
http://secunia.com/advisories/57514 Broken Link
http://www.debian.org/security/2014/dsa-2877 Third Party Advisory
http://www.lighttpd.net/2014/3/12/1.4.35/ PatchVendor Advisory
http://download.lighttpd.net/lighttpd/security/lighttpd_sa_2014_01.txt ExploitVendor Advisory
http://jvn.jp/en/jp/JVN37417423/index.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-03/msg00023.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-04/msg00002.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2014-04/msg00006.html Mailing ListThird Party Advisory
http://marc.info/?l=bugtraq&m=141576815022399&w=2 Mailing ListThird Party Advisory
http://seclists.org/oss-sec/2014/q1/561 ExploitMailing ListThird Party Advisory
http://seclists.org/oss-sec/2014/q1/564 Mailing ListThird Party Advisory
http://secunia.com/advisories/57404 Broken Link
http://secunia.com/advisories/57514 Broken Link
http://www.debian.org/security/2014/dsa-2877 Third Party Advisory
http://www.lighttpd.net/2014/3/12/1.4.35/ PatchVendor Advisory

Track CVE-2014-2323 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2014-2323), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.