CVE-2012-0788: Input Validation
https://bugs.php.net/bug.php?id=55776
[2011-09-24 19:21 UTC] grinyad at mail dot ru
Description: ------------ <?php
// make a PdoMysql statement before
$result = $stmt->fetch(PDO::FETCHLAZY);
sessionstart();
$SESSION['PDORow'] = $result; ?>
Is crashing on next request after saving PDORow to session on sessionstart()
[2011-09-24 19:24 UTC] aharvey
What do you mean by "crashing"? Is the actual PHP process crashing, or are you just getting an error message because PDO statements aren't serialisable (which is expected)?
[2011-09-25 08:56 UTC] grinyad at mail dot ru
Is a Apache crash. It gives a CGI/FastCGI Send/Don't Send window.
http://img171.imageshack.us/img171/3953/57126366.jpg
After few minutes is crashing apache server:
http://img840.imageshack.us/img840/2981/21231006.jpg
[2011-09-25 12:39 UTC] johannes
PDORow objects may not be serialized and therefore not be put in a session. In svn it was fixed to throw a warning and not crash anymore this will be in future releases.
Other sources
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 sessionstart function, as demonstrated by a crash of the Apache HTTP Server.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2012-0788?
CVE-2012-0788 has a medium severity rating.
How do I fix CVE-2012-0788?
To fix CVE-2012-0788, upgrade your PHP version to 5.3.9 or later.
Which versions of PHP are affected by CVE-2012-0788?
CVE-2012-0788 affects PHP versions up to 5.3.8 and various 5.0.x and 5.1.x versions.
What type of vulnerability is CVE-2012-0788?
CVE-2012-0788 is a session-related vulnerability impacting the PDO extension in PHP.
Can CVE-2012-0788 lead to data breaches?
Yes, CVE-2012-0788 can potentially lead to premature session termination and data leakage.