{"id":"CVE-2009-2626","aliases":["DSA-1940-1","EUVD-2009-2620","GHSA-5c54-wvq7-976j"],"status":"published","title":"The zend_restore_ini_entry_cb function in zend_ini.c in PHP 5.3.0, 5.2.10, and earlier versions...","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.","severity":{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.08306,"percentile":0.94975,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2009-11-25T00:00:00Z","modified":"2026-06-16T23:09:52Z","exploits":[{"source":"exploitdb","id":"EDB-33162","title":"PHP 5.2.10/5.3 - 'ini_restore()' Memory Information Disclosure (1)","type":"remote","platform":"php","date":"2009-08-10","verified":true,"url":"https://www.exploit-db.com/exploits/33162"},{"source":"exploitdb","id":"EDB-33163","title":"PHP 5.2.10/5.3 - 'ini_restore()' Memory Information Disclosure (2)","type":"remote","platform":"php","date":"2009-08-10","verified":true,"url":"https://www.exploit-db.com/exploits/33163"},{"source":"exploitdb","id":"EDB-10296","title":"PHP 5.2.10/5.3.0 - 'ini_restore()' Memory Information Disclosure","type":"local","platform":"php","date":"2009-12-03","verified":true,"url":"https://www.exploit-db.com/exploits/10296"}],"affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0+dfsg-8+etch16"}]}],"versions":["5.2.0+dfsg-8+etch15","5.2.0-10","5.2.0-10+lenny1","5.2.0-11","5.2.0-8+etch1","5.2.0-8+etch10","5.2.0-8+etch11","5.2.0-8+etch11~p1","5.2.0-8+etch13","5.2.0-8+etch3","5.2.0-8+etch4","5.2.0-8+etch5~pu1","5.2.0-8+etch6","5.2.0-8+etch7","5.2.0-8+etch8","5.2.0-8+etch9","5.2.0-8+etch9~bpo31+1","5.2.0-9"],"bundled":5},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6.dfsg.1-1+lenny4"}]}],"versions":["5.2.6.dfsg.1-1+lenny2","5.2.6.dfsg.1-1+lenny3"],"bundled":5}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/37482","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.debian.org/security/2009/dsa-1940","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Patch"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540605","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_ini.c?r1=272370\u0026r2=284156","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/36009","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://securityreason.com/achievement_securityalert/65","tags":["third-party-advisory","x_refsource_SREASONRES","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2626"},{"url":"https://github.com/advisories/GHSA-5c54-wvq7-976j"}],"sources":{"cve":[{"id":"CVE-2009-2626","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.","status":"published","published":"2009-12-01T16:00:00Z","modified":"2024-09-16T23:56:55.697Z","updated_at":"2026-11-02T14:33:23.395558Z"}],"euvd":[{"id":"EUVD-2009-2620","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.","status":"published","published":"2009-12-01T16:00:00Z","modified":"2024-09-16T23:56:55Z","updated_at":"2026-11-03T00:29:03.409164Z"}],"ghsa":[{"id":"GHSA-5c54-wvq7-976j","title":"The zend_restore_ini_entry_cb function in zend_ini.c in PHP 5.3.0, 5.2.10, and earlier versions...","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.","status":"published","published":"2022-05-02T03:37:07Z","modified":"2023-01-31T05:07:35Z","updated_at":"2026-11-02T14:49:14.611815Z"}],"nvd":[{"id":"CVE-2009-2626","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.","status":"published","published":"2009-12-01T16:30:01.39Z","modified":"2026-06-16T23:09:52.257Z","cvss":[{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:37.939838Z"}],"osv":[{"id":"DSA-1940-1","title":"php5 - multiple issues","status":"published","published":"2009-11-25T00:00:00Z","modified":"2026-03-09T01:18:04.666739Z","updated_at":"2026-11-02T15:46:15.108335Z"}]}}
