{"id":"CVE-2007-4528","aliases":["EUVD-2007-4511","GHSA-hp4x-jx54-qxcp"],"status":"published","title":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode...","description":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code by loading an arbitrary DLL and calling a function, as demonstrated by kernel32.dll and the WinExec function.  NOTE: this issue does not cross privilege boundaries in most contexts, so perhaps it should not be included in CVE.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0484,"percentile":0.92066,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2007-08-25T00:00:00Z","modified":"2026-06-16T22:44:15Z","exploits":[{"source":"exploitdb","id":"EDB-4311","title":"PHP 'FFI' Extension 5.0.5 - 'Safe_mode' Local Bypass","type":"local","platform":"windows","date":"2007-08-23","verified":true,"url":"https://www.exploit-db.com/exploits/4311"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://www.exploit-db.com/exploits/4311","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4528"},{"url":"https://github.com/advisories/GHSA-hp4x-jx54-qxcp"}],"sources":{"cve":[{"id":"CVE-2007-4528","description":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code by loading an arbitrary DLL and calling a function, as demonstrated by kernel32.dll and the WinExec function.  NOTE: this issue does not cross privilege boundaries in most contexts, so perhaps it should not be included in CVE.","status":"published","published":"2007-08-25T00:00:00Z","modified":"2024-08-07T15:01:09.587Z","updated_at":"2026-11-02T13:33:19.093583Z"}],"euvd":[{"id":"EUVD-2007-4511","description":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code by loading an arbitrary DLL and calling a function, as demonstrated by kernel32.dll and the WinExec function.  NOTE: this issue does not cross privilege boundaries in most contexts, so perhaps it should not be included in CVE.","status":"published","published":"2007-08-25T00:00:00Z","modified":"2024-08-07T15:01:09Z","updated_at":"2026-11-03T01:16:21.106382Z"}],"ghsa":[{"id":"GHSA-hp4x-jx54-qxcp","title":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode...","description":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code by loading an arbitrary DLL and calling a function, as demonstrated by kernel32.dll and the WinExec function.  NOTE: this issue does not cross privilege boundaries in most contexts, so perhaps it should not be included in CVE.","status":"published","published":"2022-05-01T18:24:26Z","modified":"2023-01-31T05:05:00Z","updated_at":"2026-11-02T14:48:46.289568Z"}],"nvd":[{"id":"CVE-2007-4528","description":"The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code by loading an arbitrary DLL and calling a function, as demonstrated by kernel32.dll and the WinExec function.  NOTE: this issue does not cross privilege boundaries in most contexts, so perhaps it should not be included in CVE.","status":"published","published":"2007-08-25T00:17:00Z","modified":"2026-06-16T22:44:15.98Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:19.102336Z"}]}}
