PHP up to 5.1.6 php.ini ini_restore memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.9$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, was found in PHP up to 5.1.6. The impacted element is the function ini_restore of the file php.ini. The manipulation results in memory corruption. This vulnerability is reported as CVE-2006-4625. Moreover, an exploit is present. You should upgrade the affected component.

Detailsinfo

A vulnerability classified as critical has been found in PHP up to 5.1.6 (Programming Language Software). Affected is the function ini_restore of the file php.ini. The manipulation with an unknown input leads to a memory corruption vulnerability. CWE is classifying the issue as CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. This is going to have an impact on confidentiality, and integrity. CVE summarizes:

PHP 4.x up to 4.4.4 and PHP 5 up to 5.1.6 allows local users to bypass certain Apache HTTP Server httpd.conf options, such as safe_mode and open_basedir, via the ini_restore function, which resets the values to their php.ini (Master Value) defaults.

The bug was discovered 09/09/2006. The weakness was disclosed 10/09/2006 by Maksymilian Arciemowicz (Website). The advisory is shared for download at securityreason.com. This vulnerability is traded as CVE-2006-4625 since 09/07/2006. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known.

The exploit is shared for download at securityreason.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 3 days. During that time the estimated underground price was around $25k-$100k. By approaching the search of inurl:php.ini it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 29375 (SuSE 10 Security Update : PHP (ZYPP Patch Number 2152)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165120 (SUSE Security Update for PHP4, PHP5 (SUSE-SA:2006:059)).

Upgrading eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at php.net. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (28853), Exploit-DB (28504), Tenable (29375), SecurityFocus (BID 19933†) and OSVDB (29603†). The entries VDB-2588, VDB-36025 and VDB-85435 are pretty similar. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 5.9

VulDB Base Score: 6.5
VulDB Temp Score: 5.9
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 29375
Nessus Name: SuSE 10 Security Update : PHP (ZYPP Patch Number 2152)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 110174
OpenVAS Name: PHP version smaller than 4.4.5
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: php.net
PaloAlto IPS: 🔍

Timelineinfo

09/07/2006 🔍
09/09/2006 +2 days 🔍
09/09/2006 +0 days 🔍
09/09/2006 +0 days 🔍
09/12/2006 +3 days 🔍
10/09/2006 +27 days 🔍
10/10/2006 +1 days 🔍
10/11/2006 +0 days 🔍
10/17/2006 +6 days 🔍
02/28/2007 +134 days 🔍
06/28/2007 +120 days 🔍
12/13/2007 +168 days 🔍
06/08/2025 +6387 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityreason.com
Researcher: Maksymilian Arciemowicz
Status: Confirmed

CVE: CVE-2006-4625 (🔍)
GCVE (CVE): GCVE-0-2006-4625
GCVE (VulDB): GCVE-100-2592
X-Force: 28853 - PHP ini_restore() safe_mode restrictions bypass, Medium Risk
SecurityFocus: 19933 - PHP Ini_Restore() Safe_Mode and Open_Basedir Restriction Bypass Vulnerability
Secunia: 25850 - HP Secure Web Server/Internet Express for Tru64 UNIX PHP Vulnerabilities, Moderately Critical
OSVDB: 29603 - PHP ini_restore() Apache httpd.conf Options Bypass
Vulnerability Center: 14448 - PHP Restriction Bypass via the ini_restore Function, Low
Vupen: ADV-2007-2374

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 10/11/2006 10:27
Updated: 06/08/2025 02:26
Changes: 10/11/2006 10:27 (104), 07/15/2019 18:45 (1), 06/08/2025 02:26 (19)
Complete: 🔍
Cache ID: 216:A64:103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!