Stack-based buffer overflow in PHP - CVE-2011-1938

 

Stack-based buffer overflow in PHP - CVE-2011-1938

Published: May 31, 2011 / Updated: August 11, 2020


Vulnerability identifier: #VU45008
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2011-1938
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is 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 when processing a long pathname for a UNIX socket. 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

PHP
Gentoo Linux
Ubuntu
Slackware Linux
php5-cgi (Ubuntu package)
php5-common (Ubuntu package)
php5-cli (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
dev-lang/php
php

How to mitigate CVE-2011-1938

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

php5-cgi (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.18, 5.3.2-1ubuntu4.10, 5.3.3-1ubuntu9.6, 5.3.5-1ubuntu7.3, 5.3.6-13ubuntu3.2
php5-common (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.18, 5.3.2-1ubuntu4.10, 5.3.3-1ubuntu9.6, 5.3.5-1ubuntu7.3, 5.3.6-13ubuntu3.2
php5-cli (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.18, 5.3.2-1ubuntu4.10, 5.3.3-1ubuntu9.6, 5.3.5-1ubuntu7.3, 5.3.6-13ubuntu3.2
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.18, 5.3.2-1ubuntu4.10, 5.3.3-1ubuntu9.6, 5.3.5-1ubuntu7.3, 5.3.6-13ubuntu3.2
dev-lang/php - update to 5.3.8
php - update to 5.3.8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins