open_basedir Bypass via cURL in PHP 4.0
In PHP 4.0, the cURL extension allows remote attackers to bypass the open_basedir restriction by passing a file: URL to the curl_init function. This enables reading of arbitrary files on the filesystem, regardless of the open_basedir configuration intended to restrict such access.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Attackers can read arbitrary files on the server, potentially exposing sensitive information such as configuration files, credentials, or application data, even when open_basedir is set to restrict file access.
If you can’t patch tonight, do this now.
Disable the cURL extension if not required, or restrict its usage. Use additional access controls at the OS level to prevent unauthorized file access. Monitor and audit PHP scripts for improper use of cURL with file: URLs.
Patch, then assume compromise.
Upgrade to a version of PHP where this vulnerability is patched. Ensure that the cURL extension properly enforces open_basedir restrictions when handling file: URLs.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.