Information disclosure in PHP - CVE-2010-2531

 

Information disclosure in PHP - CVE-2010-2531

Published: January 19, 2023 / Updated: June 8, 2025


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

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

The var_export function in PHP 5.2 before 5.2.14 and 5.3 before 5.3.3 flushes the output buffer to the user when certain fatal errors occur, even if display_errors is off, which allows remote attackers to obtain sensitive information by causing the application to exceed limits for memory, execution time, or recursion.


Affected software

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

How to mitigate CVE-2010-2531

Install update from vendor's website.

PHP - update to 5.3.3
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
dev-lang/php - update to 5.3.8

External References

Related Security Bulletins