Skip to main content
EPSS 0.5%top 56%

CVE-2026-59989: CWE-94: Improper Control of Generation of Code ('Code Injection') in phalcon cphalcon

0
Critical
Published: 08/21/2026 (08/21/2026, 20:25:44 UTC)
Source: CVE Database V5
Vendor/Project: phalcon
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

phalcon

cphalcon

Affected versions
<5.16.0
GitHub Actionsmore threats →ai
phalcon/cphalcon
pkg:github/phalcon/cphalcon
Affected versions
<5.16.0

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

AILast updated: 09/10/2026, 17:06:41 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses