LiveActive security incident?Get immediate response
CVE Record

CVE-2007-4528: The Foreign Function Interface (ffi) extension in PHP 5.0.5 does not follow safe_mode restrictions, which a...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

This old PHP issue concerns the FFI extension in PHP 5.0.5 bypassing safe_mode restrictions. An attacker with the right context could make PHP load a DLL and call functions, resulting in arbitrary code execution under the current PHP process context.

Executive priority

Treat this as a legacy-platform risk, not a confirmed active campaign. It deserves attention if old PHP systems remain in production, especially shared-hosting or constrained execution environments.

Technical view

The CVE states PHP 5.0.5 FFI did not honor safe_mode restrictions, allowing context-dependent arbitrary code execution through arbitrary DLL loading and function invocation. The record explicitly cautions that it usually does not cross privilege boundaries, and severity/CVSS are not provided.

Likely exposure

Exposure is likely limited to legacy PHP 5.0.5 environments using the FFI extension and relying on safe_mode as a containment control. The bundle does not identify specific CPEs, platforms, or supported vendor versions.

Exploitation context

The bundle includes an Exploit-DB reference, but KEV is false and no cited source states active exploitation. The issue appears context-dependent and most relevant where an attacker can influence PHP code execution within a constrained safe_mode environment.

Researcher notes

Evidence is sparse: no CVSS, CWE, CPE, patch note, or vendor advisory is included in the bundle. The CVE note questions inclusion because privilege boundaries are usually not crossed, so validation should focus on actual PHP version, FFI exposure, and trust boundaries.

Mitigation direction

  • Inventory legacy PHP 5.0.5 systems and FFI extension usage.
  • Do not rely on safe_mode as the primary containment boundary.
  • Review vendor or distribution guidance for supported remediation options.
  • Prioritize retirement or isolation of affected legacy PHP workloads.

Validation and detection

  • Confirm whether any environment still runs PHP 5.0.5.
  • Check whether the PHP FFI extension is enabled.
  • Identify applications that depend on safe_mode restrictions for isolation.
  • Review logs and change history for unexpected FFI-related behavior.
Prepared
Confidence
medium
Sources
3

Public sources used

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2007-4528 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.