{"id":"CVE-2007-0448","published":"2007-05-24T18:00:00Z","modified":"2024-08-07T12:19:29Z","title":"The fopen function in PHP 5.2.0 does not properly handle invalid URI handlers, which allows context-dependent…","vendor":null,"product":null,"tier":"tail","description":{"text":"The fopen function in PHP 5.2.0 does not properly handle invalid URI handlers, which allows context-dependent attackers to bypass safe_mode restrictions and read arbitrary files via a file path specified with an invalid URI, as demonstrated via the srpath URI.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07112,"percentile":0.94388,"provenance":"source"},"cwes":[],"references":[{"url":"http://securityreason.com/achievement_securityalert/44","tags":["third-party-advisory","x_refsource_SREASONRES"]},{"url":"http://www.securityfocus.com/bid/22261","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://securityreason.com/securityalert/2175","tags":["third-party-advisory","x_refsource_SREASON"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.88},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-01-26"},"first":{"date":"2007-01-26","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/29528"},"provenance":"source"},"summary":{"text":"The fopen function in PHP 5.2.0 mishandles invalid URI handlers, a flaw in how PHP's file-opening logic processes such paths. An context-dependent attacker can exploit it to bypass safe_mode restrictions and read arbitrary files by supplying a file path with an invalid URI, as demonstrated with the srpath URI, and no authentication or user interaction is stated as required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:00:02Z"},"euvd":{"id":"EUVD-2007-0448","exploited":false,"provenance":"source"},"exploits":[{"id":29528,"url":"https://www.exploit-db.com/exploits/29528","title":"PHP 5.2 - FOpen 'Safe_mode' Restriction Bypass","date":"2007-01-26","verified":true,"provenance":"source"}]}