CVE-2026-59989: CWE-94: Improper Control of Generation of Code ('Code Injection') in phalcon cphalcon
CVE-2026-59989 is a critical code injection vulnerability in the Phalcon PHP framework's Volt template engine. In versions 5.15.0 and earlier, the resolveFilter function improperly inserts raw values into generated PHP code without proper sanitization, allowing an attacker who can control Volt template source to inject and execute arbitrary PHP code. This issue is fixed in version 5.16.0.
AI Analysis
Technical Summary
Phalcon's Volt template engine in versions up to 5.15.0 contains a code injection vulnerability (CWE-94) in the resolveFilter method of phalcon/Mvc/View/Engine/Volt/Compiler.zep. The method builds join filters by inserting raw separator and array token values directly into generated PHP code without passing them through the expression() function for sanitization. An attacker able to influence the Volt template source can inject quote-breaking content into join arguments, resulting in arbitrary PHP code injection into the compiled cache file. This code executes when the template is rendered via Phalcon\Mvc\View\Engine\Volt::render(). The vulnerability is resolved in version 5.16.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker with the ability to control Volt template source code to execute arbitrary PHP code on the server, leading to full system compromise. The vulnerability has a CVSS 4.0 score of 9.2 (critical), indicating high attack vector and impact with no user interaction required.
Mitigation Recommendations
This vulnerability is fixed in Phalcon version 5.16.0. Users should upgrade to version 5.16.0 or later to remediate this issue. No other temporary mitigations or vendor advisories are provided; patching is the recommended action.
CVE-2026-59989: CWE-94: Improper Control of Generation of Code ('Code Injection') in phalcon cphalcon
Description
CVE-2026-59989 is a critical code injection vulnerability in the Phalcon PHP framework's Volt template engine. In versions 5.15.0 and earlier, the resolveFilter function improperly inserts raw values into generated PHP code without proper sanitization, allowing an attacker who can control Volt template source to inject and execute arbitrary PHP code. This issue is fixed in version 5.16.0.
CVSS v4.0
Score 9.2critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Phalcon's Volt template engine in versions up to 5.15.0 contains a code injection vulnerability (CWE-94) in the resolveFilter method of phalcon/Mvc/View/Engine/Volt/Compiler.zep. The method builds join filters by inserting raw separator and array token values directly into generated PHP code without passing them through the expression() function for sanitization. An attacker able to influence the Volt template source can inject quote-breaking content into join arguments, resulting in arbitrary PHP code injection into the compiled cache file. This code executes when the template is rendered via Phalcon\Mvc\View\Engine\Volt::render(). The vulnerability is resolved in version 5.16.0.
Potential Impact
Successful exploitation allows an unauthenticated attacker with the ability to control Volt template source code to execute arbitrary PHP code on the server, leading to full system compromise. The vulnerability has a CVSS 4.0 score of 9.2 (critical), indicating high attack vector and impact with no user interaction required.
Mitigation Recommendations
This vulnerability is fixed in Phalcon version 5.16.0. Users should upgrade to version 5.16.0 or later to remediate this issue. No other temporary mitigations or vendor advisories are provided; patching is the recommended action.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T19:41:00.005Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a88b714acd9273b49b4168b
Added to database: 08/21/2026, 20:37:40 UTC
Last enriched: 08/21/2026, 20:52:32 UTC
Last updated: 08/21/2026, 21:02:41 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.