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 input 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
phalcon
cphalcon
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 5.15.0 and earlier contains a code injection vulnerability (CWE-94) in the resolveFilter function located in phalcon/Mvc/View/Engine/Volt/Compiler.zep. The function builds join filters by directly inserting raw separator and array token values into generated PHP code without passing them through the expression() sanitization method. An attacker able to influence 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 Phalcon\Mvc\View\Engine\Volt::render() loads the template. The vulnerability is resolved in version 5.16.0.
Potential Impact
Successful exploitation allows an attacker with the ability to modify Volt template source to execute arbitrary PHP code on the server, leading to full compromise of the application environment. The CVSS 4.0 score is 9.2 (critical), reflecting network attack vector, low complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Phalcon to version 5.16.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 5.16.0.
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
Threat ID: 6a88b714acd9273b49b4168b
Added to database: 08/21/2026, 20:37:40 UTC
Last enriched: 09/10/2026, 17:06:41 UTC
Last updated: 10/05/2026, 18:48:20 UTC
Views: 79
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.