Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-51754— Unguarded calls to __toString() when nesting an object into an array in Twig

Quick assessment

Affected
twigphp Twig
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Twig是Twig开源的一个PHP模板引擎。 Twig存在安全漏洞,该漏洞源于在沙盒中当对象是数组或参数列表的一部分时,即使安全策略不允许__toString()方法,攻击者也可以对对象调用该方法。

CVSS 2.2 · Low EPSS 0.43% · P36

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-51754

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unguarded calls to __toString() when nesting an object into an array in Twig
Source: CVE Program / CVE List V5
Vulnerability Description
Twig is a template language for PHP. In a sandbox, an attacker can call `__toString()` on an object even if the `__toString()` method is not allowed by the security policy when the object is part of an array or an argument list (arguments to a function or a filter for instance). This issue has been patched in versions 3.11.2 and 3.14.1. All users are advised to upgrade. There are no known workarounds for this issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
将资源暴露给错误范围
Source: CVE Program / CVE List V5
Vulnerability Title
Twig 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Twig是Twig开源的一个PHP模板引擎。 Twig存在安全漏洞,该漏洞源于在沙盒中当对象是数组或参数列表的一部分时,即使安全策略不允许__toString()方法,攻击者也可以对对象调用该方法。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
twigphp Twig < 3.11.2 -

II. Public POCs for CVE-2024-51754

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-51754

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-51754 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-51754

No comments yet


Leave a comment