{"answers":{"affected":"2 open source packages ship an affected version, including phalcon/cphalcon.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59989 exists.","fix":"Upgrade phalcon/cphalcon to 5.16.0 or later.","what":"CVE-2026-59989 is a critical code injection vulnerability in cphalcon, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59989 and fix it if it is affected.\n\nWhat it is: CVE-2026-59989 is a critical code injection vulnerability in cphalcon, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59989 exists.\n\nAffected packages and fixed versions:\n- phalcon/cphalcon (Packagist): affected all versions; fixed in 5.16.0\n- phalcon/cphalcon (Packagist): affected all versions; fixed in 5.16.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-59989/ (Markdown: https://insights.sbomify.com/CVE-2026-59989/index.md)","id":"CVE-2026-59989","markdown":"https://insights.sbomify.com/CVE-2026-59989/index.md","name":"CVE-2026-59989","record":{"aliases":["GHSA-hrwp-4hh9-c8r8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Phalcon PHP framework","requires_auth":"none","summary":"Attackers can inject PHP code via Volt template join filters, leading to remote code execution when templates are rendered.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI lead to RCE)","id":"CVE-2026-59989","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Jawn: Uncontrolled nesting depth in JSON parser","id":"CVE-2026-59990"},"packages":[{"ecosystem":"Packagist","fixed":["5.16.0"],"introduced":["0"],"last_affected":[],"package":"phalcon/cphalcon","purl":null,"source":"GHSA-hrwp-4hh9-c8r8"},{"ecosystem":"Packagist","fixed":["5.16.0"],"introduced":["0"],"last_affected":[],"package":"phalcon/cphalcon","purl":"pkg:composer/phalcon/cphalcon","source":"GHSA-hrwp-4hh9-c8r8"}],"prev":{"headline":"OpenEXR: Heap out-of-bounds read in OpenEXRCore RLE decoding on ILP32","id":"CVE-2026-59985"},"products":["cphalcon"],"published":"2026-08-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-27","vendors":["phalcon"]},"summary":"Attackers can inject PHP code via Volt template join filters, leading to remote code execution when templates are rendered.","url":"https://insights.sbomify.com/CVE-2026-59989/"}