VYPR
High severity7.3NVD Advisory· Published Dec 31, 2014· Updated May 6, 2026

CVE-2014-9426

CVE-2014-9426

Description

PHP Fileinfo component's apprentice_load function attempts to free a stack array, causing memory corruption or crash; disputed but fixed.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

PHP Fileinfo component's apprentice_load function attempts to free a stack array, causing memory corruption or crash; disputed but fixed.

Vulnerability

The apprentice_load function in libmagic/apprentice.c of the Fileinfo component in PHP through 5.6.4 attempts to perform a efree() operation on a stack-based character array (mfn). This is an invalid free because stack-allocated memory cannot be freed with the heap deallocator. The code path is reachable when processing certain file inputs. The issue was reported in PHP bug #68665 [1] and affects PHP versions 5.6.4 and earlier.

Exploitation

An attacker can trigger this vulnerability by providing a crafted file that causes the apprentice_load function to execute the erroneous efree() call. No authentication or special privileges are required; the attack can be performed remotely by sending a malicious file to a PHP application that uses the Fileinfo component (e.g., via file upload or finfo functions). The exact sequence of steps is not publicly detailed, but the bug report confirms the invalid free is reachable.

Impact

Successful exploitation leads to memory corruption or an application crash, resulting in a denial of service (DoS). The vendor disputes the severity, arguing that the standard erealloc behavior makes the free operation unreachable in practice. However, the bug report indicates the issue was fixed, suggesting it could be triggered under certain conditions. The impact is limited to availability; no code execution or information disclosure has been demonstrated.

Mitigation

The vulnerability was fixed in a later PHP release. According to the bug report [1], the fix was applied and the bug closed on 2014-12-28. Users should upgrade to PHP 5.6.5 or later, or apply the provided patch. No workaround is available for unpatched versions. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

5

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.