Stack-based buffer overflow in lighttpd - CVE-2014-1878

 

Stack-based buffer overflow in lighttpd - CVE-2014-1878

Published: February 28, 2014 / Updated: August 8, 2022


Vulnerability identifier: #VU32527
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-1878
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the cmd_submitf function in cgi/cmd.c when processing a long message to cmd.cgi. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

lighttpd
Debian Linux
Ubuntu
nagios (Alpine package)
icinga (Debian package)
nagios3 (Debian package)
nagios3-cgi (Ubuntu package)
nagios3-core (Ubuntu package)

How to mitigate CVE-2014-1878

Install update from vendor's website.

nagios (Alpine package) - update to 3.4.4-r2
icinga (Debian package) - update to 1.0.2-2+squeeze2
nagios3 (Debian package) - update to 3.4.1-3+deb7u2
nagios3-cgi (Ubuntu package) - addressed in versions 3.5.1-1ubuntu1.1, 3.5.1.dfsg-2.1ubuntu1.1, 3.5.1.dfsg-2.1ubuntu3.1
nagios3-core (Ubuntu package) - addressed in versions 3.5.1-1ubuntu1.1, 3.5.1.dfsg-2.1ubuntu1.1, 3.5.1.dfsg-2.1ubuntu3.1

External References

Related Security Bulletins