CVE-2025-52122
PHP vulnerability analysis and mitigation

Overview

A Server-side template injection (SSTI) vulnerability exists in Freeform, a plugin for CraftCMS, versions 5.0.0 to before 5.10.16. The vulnerability allows arbitrary code injection for users with form editing permissions (NVD, AttackerKB). The vulnerability was disclosed on August 27, 2025.

Technical details

The vulnerability stems from Freeform's implementation of the "call" Twig filter without proper user input validation. This allows attackers to inject malicious code through the form submission title field. The vulnerability has received a CVSS v3.1 base score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating its severe nature. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code) and CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) (NVD).

Impact

The vulnerability allows attackers to execute arbitrary system commands through template injection. This can lead to complete system compromise, as demonstrated by the ability to execute arbitrary curl commands to external servers (GitHub POC).

Mitigation and workarounds

Users should upgrade to Freeform version 5.10.16 or later, which contains a fix for this vulnerability. The fix implements proper validation of user input for the Twig filter (GitHub POC).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management