Input validation error in PHP - CVE-2012-0788

 

Input validation error in PHP - CVE-2012-0788

Published: February 14, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU44297
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-2012-0788
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform service disruption.

The PDORow implementation in PHP before 5.3.9 does not properly interact with the session feature, which allows remote attackers to cause a denial of service (application crash) via a crafted application that uses a PDO driver for a fetch and then calls the session_start function, as demonstrated by a crash of the Apache HTTP Server.


Affected software

PHP
Gentoo Linux
Ubuntu
php5-cgi (Ubuntu package)
php5-cli (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
php5-common (Ubuntu package)
php5 (Ubuntu package)
php5-xsl (Ubuntu package)

How to mitigate CVE-2012-0788

Install update from vendor's website.

php5-cgi (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5
php5-cli (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5
php5-common (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5
php5 (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5
php5-xsl (Ubuntu package) - addressed in versions 5.2.4-2ubuntu5.22, 5.3.2-1ubuntu4.13, 5.3.3-1ubuntu9.9, 5.3.5-1ubuntu7.6, 5.3.6-13ubuntu3.5

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins