
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59989 is a compile-time PHP code injection vulnerability (Server-Side Template Injection leading to Remote Code Execution) in the Volt template compiler of the Phalcon PHP framework. The flaw affects Phalcon versions 5.15.0 and earlier (phalcon/cphalcon Composer package) and was originally reported by researcher nikkoenggaliano, with the advisory published on July 10, 2026, and added to the GitHub Advisory Database on August 21, 2026. It carries a CVSS v4.0 base score of 9.2 (Critical) (Github Advisory).
The root cause lies in phalcon/Mvc/View/Engine/Volt/Compiler.zep at lines 2544–2546, where the resolveFilter() function handles the join filter by directly string-concatenating raw template token values — the separator and array argument — into generated PHP code without routing them through the expression() method that all other Volt expressions use for escaping (CWE-94, CWE-1336). The vulnerable code is effectively "join('" . funcArguments[1]["expr"]["value"] . "', " . funcArguments[0]["expr"]["value"] . ")", meaning an attacker-controlled separator containing a single quote can break out of the generated join('...') call and inject arbitrary PHP statements. Because Volt writes the compiled template to a cache file and require()s it at render time via Phalcon\Mvc\View\Engine\Volt::render(), the injected PHP executes in the web server process. Exploitation requires the attacker to be able to influence Volt template source (e.g., through a feature that allows user-supplied template content) (Github Advisory, Patch Commit).
Successful exploitation allows an attacker to inject and execute arbitrary PHP code with the privileges of the web server process, resulting in full confidentiality, integrity, and availability compromise of the affected server. An attacker can read sensitive files, modify application data, establish persistent backdoors, or pivot to other internal systems. The impact is scoped to applications that compile attacker-influenced Volt template source; applications where templates are entirely developer-controlled are not at risk (Github Advisory).
No public proof-of-concept exploit code has been observed, and there is no evidence of active in-the-wild exploitation at the time of disclosure (Github Advisory). The EPSS score is approximately 0.313% (24th percentile), indicating a relatively low near-term exploitation probability. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the precondition that an attacker can influence Volt template source content, which limits the attack surface to applications with user-controlled template input.
join filter with a separator argument containing a single quote to break out of the generated PHP string context, followed by arbitrary PHP code. For example: {{ ['a','b']|join("', system('id'), '") }}.join('', system('id'), '', $array)).Phalcon\Mvc\View\Engine\Volt::render() to require() the poisoned cache file, executing the injected PHP code as the web server process user..php files in the Volt template cache directory (typically app/cache/ or a configured compiledPath) containing unusual PHP constructs such as system(), exec(), passthru(), shell_exec(), or eval() calls embedded within otherwise normal join() expressions./tmp/volt*.php) if an attacker is testing compilation locally.sh, bash, curl, wget, python) that are not part of normal application behavior.The fix is available in Phalcon version 5.16.0, released June 22, 2026, which routes both join filter arguments through the expression() method to ensure proper escaping (Phalcon Release, Patch Commit). Upgrade to phalcon/cphalcon version 5.16.0 or later via Composer (composer update phalcon/cphalcon). As a workaround for applications that cannot immediately upgrade, restrict write access to Volt template source files and cache directories to trusted administrators only, and ensure no user-supplied data is passed into Volt template compilation. Audit application code for any code paths that compile user-controlled strings as Volt templates.
The vulnerability was reported by researcher nikkoenggaliano and published by Phalcon maintainer niden (Github Advisory). A Korean-language threat intelligence report referencing the CVE was noted in the Argus AI Threat Intelligence repository shortly after public disclosure. General community awareness appears limited, consistent with the niche attack surface (applications with user-controlled Volt template input).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."