CVE-2026-48807
CWE-693Published: July 14, 2026· Updated: Jul 17, 2026
Official Description
Twig is a template language for PHP. Prior to 3.27.0, the sandbox __toString() checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings without consulting the sandbox policy. This issue is fixed in version 3.27.0.
Risk Analysis
This critical vulnerability in Twig, a template language for PHP, versions prior to 3.27.0, allows for sandbox policy bypass. The sandbox __toString() checks do not fully cover Traversable values, enabling Stringable objects to be coerced to strings without consulting the sandbox policy. The CVSS score of 9.1 indicates a severe risk, but there is no information on exploitation likelihood (EPSS) or confirmed exploitation (KEV).
No public exploit is known for this vulnerability. It is remotely exploitable without authentication and with low attack complexity.
Upgrade Twig to version 3.27.0 or later. Ensure that all values, especially Traversable and Stringable objects, are properly evaluated against sandbox policies to prevent bypasses.
Technical Analysis
CVE-2026-48807 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), with a CVSS base score of 9.1.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (2)
Quick Facts
Related CVEs (CWE-693)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2026-48807 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts