# Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI leads to RCE)

Critical severity, published 2026-08-21. Update phalcon/cphalcon to 5.16.0 or later: composer update phalcon/cphalcon.

Canonical URL: https://buzzphp.com/security/ghsa-hrwp-4hh9-c8r8 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical |
| Published | 2026-08-21 |
| Updated | 2026-08-27 |
| CVE | [CVE-2026-59989](https://nvd.nist.gov/vuln/detail/CVE-2026-59989) |
| GHSA | [GHSA-hrwp-4hh9-c8r8](https://github.com/advisories/GHSA-hrwp-4hh9-c8r8) |
| Weakness | CWE-94, CWE-1336 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| phalcon/cphalcon | <= 5.15.0 | 5.16.0 |

## What to do

Update phalcon/cphalcon to 5.16.0 or later: composer update phalcon/cphalcon.

Check which version you run with `composer show phalcon/cphalcon`, and every affected package with `composer audit`.

## About this advisory

Summary

The Volt template compiler in Phalcon generates the PHP for the join filter by string-concatenating the filter's raw template-literal argument bytes with no escaping. The separator literal is dropped verbatim between two single quotes the compiler emits, and the piped array argument is emitted completely bare. A Volt template whose join arguments are attacker-influenced can therefore break out of the generated join('…') call and inject arbitrary PHP into the compiled template. Volt writes that compiled template to a cache file and require()s it at render time, so the injected PHP executes i.e.

## Links

- [GHSA-hrwp-4hh9-c8r8 on GitHub](https://github.com/advisories/GHSA-hrwp-4hh9-c8r8)
- [CVE-2026-59989 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-59989)
- [All Composer security advisories](https://buzzphp.com/security)
