CVE-2025-24374
PHP vulnerability analysis and mitigation

Overview

Twig, a template language for PHP, disclosed a security vulnerability (CVE-2025-24374) on January 29, 2025. The vulnerability stems from missing output escaping when using the ?? (null coalesce) operator for the expression on the left side of the operator. This issue has been fixed in version 3.19.0 (NVD, GitHub Advisory).

Technical details

The vulnerability is classified as moderate with a CVSS v3.1 base score of 4.3 (MEDIUM). The CVSS vector string is CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N, indicating that it requires network access and user interaction but no privileges. The vulnerability is categorized under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) (GitHub Advisory).

Impact

The vulnerability affects the integrity of data with low severity, while having no impact on confidentiality or availability. The scope is unchanged, meaning the vulnerability is contained within the same security scope as the vulnerable component (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Twig version 3.19.0. Users are advised to upgrade to this version or later to address the security issue. The fix involves properly implementing output escaping for expressions on the left side of the ?? operator (GitHub Commit).

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-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2026-23493HIGH8.6
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026
CVE-2026-23495MEDIUM4.3
  • PHPPHP
  • pimcore/admin-ui-classic-bundle
NoYesJan 15, 2026
CVE-2026-23494MEDIUM4.3
  • PHPPHP
  • pimcore/pimcore
NoYesJan 15, 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