cbcvebase.
CVE-2014-2323
published 2014-03-14

CVE-2014-2323: 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…

PriorityP180critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
61.67%
99.1th percentile
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.

Affected

14 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianlighttpd< lighttpd 1.4.33-1+nmu3 (bookworm)lighttpd 1.4.33-1+nmu3 (bookworm)
lighttpdlighttpd< 1.4.351.4.35
lighttpdlighttpd>= 0 < 1.4.33-1+nmu31.4.33-1+nmu3
lighttpdlighttpd>= 0 < 1.4.33-1+nmu31.4.33-1+nmu3
lighttpdlighttpd>= 0 < 1.4.33-1+nmu31.4.33-1+nmu3
lighttpdlighttpd>= 0 < 1.4.33-1+nmu31.4.33-1+nmu3
opensuseopensuse
opensuseopensuse
opensuseopensuse
suselinux_enterprise_high_availability_extension
suselinux_enterprise_software_development_kit

Detection & IOCsextracted from sources · hover to see the quote

commandGET /etc/passwd HTTP/1.1 Host: [::1]' UNION SELECT '/
  • Detect SQL injection via HTTP Host header containing a UNION SELECT payload, specifically targeting lighttpd mod_mysql_vhost. Look for Host headers matching the pattern: [::1]' UNION SELECT '/ or similar IPv6-bracketed values with appended SQL syntax.
  • The vulnerability is triggered via the HTTP Host header value passed to request_check_hostname in mod_mysql_vhost.c — monitor Host headers containing single quotes, UNION, or SELECT keywords on lighttpd servers.
  • Regex match on HTTP response body for successful exploitation confirmation: root:[x*]:0:0:
  • Use Shodan query cpe:"cpe:2.3:a:lighttpd:lighttpd" to identify potentially vulnerable internet-facing lighttpd instances for proactive detection/patching.
  • ·The vulnerability only affects lighttpd instances with mod_mysql_vhost enabled. Disabling this module mitigates the SQL injection vector entirely.
  • ·The related path traversal (CVE-2014-2324) affects mod_evhost and mod_simple_vhost when IPv6 addresses are used as host names; do not allow creation of "[...]" directories in base directories as a workaround.
  • ·The exploit payload uses an IPv6-bracketed Host header ([::1]) combined with SQL UNION SELECT to inject into the MySQL virtual host lookup query — detection rules should account for this specific encoding.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.