# CVE-2009-2626: The zendrestoreinientrycb function in zendini.c in PHP 5.3.0, 5.2.10, and earlier versions allows context-specific attackers to obtain sens…

- Severity: Medium 6.4 (CVSS:2.0, scored by NVD) `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 8.31%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2009-12-01T16:00:00.000Z
- Modified: 2026-06-16T23:09:52.257Z
- Assigned by: certcc

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- php php: up to 5.2.10; 1.0; 2.0; 2.0b10; 3.0; 3.0.1; 3.0.2; 3.0.3; 3.0.4; 3.0.5; 3.0.6; 3.0.7; and 23 more

## References

- <http://securityreason.com/achievement_securityalert/65> (exploit, third-party-advisory)
- <http://secunia.com/advisories/37482> (third-party-advisory, vendor-advisory)
- <http://www.debian.org/security/2009/dsa-1940> (patch, vendor-advisory)
- <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540605> (patch)
- <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> (vdb-entry)

## Sources

- CVE List: [CVE-2009-2626](https://www.cve.org/CVERecord?id=CVE-2009-2626), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2009-2626](https://nvd.nist.gov/vuln/detail/CVE-2009-2626), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2009-2626 · Whole record: https://cve.day/CVE-2009-2626.json · Rebuilt by cve.day 2026-11-25T22:57:06.669Z
