Description
Phalcon is a high-performance, full-stack PHP framework. In 5.15.0 and earlier, resolveFilter in phalcon/Mvc/View/Engine/Volt/Compiler.zep builds the join filter by inserting the raw separator and array token values into generated PHP without passing them through expression(). An attacker who can influence Volt template source can place quote-breaking content in a join argument, inject PHP into the compiled cache file, and execute it when Phalcon\Mvc\View\Engine\Volt::render() loads the template. This issue is fixed in version 5.16.0.
Published: 2026-08-21
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Phalcon’s Volt template engine has a flaw in the resolveFilter function that builds the join filter by inserting raw separator and array token values directly into generated PHP code. When an attacker can influence the contents of a Volt template, they can inject quote‑breaking characters into the join arguments, causing arbitrary PHP to be written into the compiled cache file. When that cached template is later rendered, the injected PHP executes, yielding full remote code execution. The vulnerability represents a classic code injection scenario, identified as CWE‑94 and CWE‑1336.

Affected Systems

The issue affects all releases of the Phalcon framework from the beginning through version 5.15.0. The vendor Phalcon (cphalcon) listed the affected products as the phalcon:cphalcon package for those releases. A fixed version is available in the 5.16.0 release.

Risk and Exploitability

A CVSS score of 9.2 reflects a high severity. No EPSS score is published, but the absence of a KEV listing does not lower the risk because the flaw allows arbitrary PHP execution when templates can be modified. Attackers are likely to deliver malicious content via user‑supplied data that is rendered in a Volt template or by directly modifying a template file on the server. The vulnerability is exploitable where the application processes untrusted input in Volt templates without proper sanitization.

Generated by OpenCVE AI on August 21, 2026 at 21:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Phalcon to version 5.16.0 or newer.
  • If an immediate upgrade is not possible, restrict template modifications to trusted input only and validate or escape all parameters used in the join filter.
  • Backport the commit e434061be3b7161930476c1368c868badc71e1bd that patches the resolveFilter function to all affected versions.
  • Verify that no untrusted data can be inserted into Volt templates at runtime.
  • Monitor application logs for unexpected PHP execution or template rendering errors.

Generated by OpenCVE AI on August 21, 2026 at 21:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hrwp-4hh9-c8r8 Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI leads to RCE)
History

Thu, 27 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Phalcon
Phalcon cphalcon
Vendors & Products Phalcon
Phalcon cphalcon

Fri, 21 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description Phalcon is a high-performance, full-stack PHP framework. In 5.15.0 and earlier, resolveFilter in phalcon/Mvc/View/Engine/Volt/Compiler.zep builds the join filter by inserting the raw separator and array token values into generated PHP without passing them through expression(). An attacker who can influence Volt template source can place quote-breaking content in a join argument, inject PHP into the compiled cache file, and execute it when Phalcon\Mvc\View\Engine\Volt::render() loads the template. This issue is fixed in version 5.16.0.
Title Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI lead to RCE)
Weaknesses CWE-1336
CWE-94
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Phalcon Cphalcon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-27T16:24:50.700Z

Reserved: 2026-07-07T19:41:00.005Z

Link: CVE-2026-59989

cve-icon Vulnrichment

Updated: 2026-08-27T16:15:09.103Z

cve-icon NVD

Status : Received

Published: 2026-08-21T21:17:00.713

Modified: 2026-08-27T17:18:58.150

Link: CVE-2026-59989

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T22:00:14Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')