CVE-2006-4625: Bypass of Apache httpd.conf Restrictions via ini_restore in PHP
- Vendor
- PHP Group
In PHP versions 4.x up to 4.4.4 and 5 up to 5.1.6, the ini_restore function can be used by local users to reset configuration directives such as safe_mode and open_basedir to their php.ini master values, thereby bypassing restrictions set in Apache's httpd.conf. This allows local users to circumvent security controls intended to restrict PHP script behavior.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Local users can bypass critical security restrictions such as safe_mode and open_basedir, potentially allowing them to access files and resources outside of intended boundaries, leading to information disclosure or further privilege escalation.
Mitigation
If you can’t patch tonight, do this now.
Restrict local user access to the affected PHP environment, and consider disabling the ini_restore function via the disable_functions directive in php.ini as a temporary mitigation until a patched version can be deployed.
Remediation
Patch, then assume compromise.
Upgrade to a version of PHP later than 4.4.4 or 5.1.6 where the ini_restore function no longer allows bypassing of httpd.conf restrictions. Alternatively, disable the ini_restore function if possible.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2006-4625 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2006-4625 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2006-4625?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2006-4625.
- Is there a patch for CVE-2006-4625?
- Upgrade to a version of PHP later than 4.4.4 or 5.1.6 where the ini_restore function no longer allows bypassing of httpd.conf restrictions. Alternatively, disable the ini_restore function if possible.
- What products are affected by CVE-2006-4625?
- PHP Group Php.
- How severe is CVE-2006-4625?
- CVE-2006-4625 has a CVSS v2 score of 3.6 (Low) and an EPSS score of 1.2% (69th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.