PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-46634 twigphp CVE debrief

The CVE record for CVE-2026-46634 was published on 2026-07-14T22:16:56.130Z. This vulnerability affects Twig template language for PHP, specifically versions between 3.9.0 and 3.26.0. The issue is related to the template_from_string() function, which can allow a sandboxed template to render an inner template without proper security policy enforcement. Users of Twig should review their deployments and ensure they are using version 3.26.0 or later to mitigate this vulnerability. The NVD entry for this CVE is currently Analyzed, indicating a comprehensive review has been conducted.

Vendor
twigphp
Product
Twig
CVSS
HIGH 7.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-14
Original CVE updated
2026-07-29
Advisory published
2026-07-14
Advisory updated
2026-07-29

Who should care

Users of Twig template language for PHP, particularly those using versions between 3.9.0 and 3.26.0, should be aware of this vulnerability. This includes developers, system administrators, and security teams responsible for maintaining and securing applications that utilize Twig. Reviewing and adjusting sandbox configurations to ensure proper security policy enforcement is crucial. Additionally, monitoring for and addressing potential exploitation attempts is recommended.

Technical summary

A vulnerability in Twig template language for PHP, versions between 3.9.0 and 3.26.0, allows a sandboxed template to render an inner template without security policy enforcement via the template_from_string() function. This issue arises because the template_from_string() function compiles an inner template under a synthesized __string_template__<hash> name that can fall outside a SourcePolicyInterface sandbox decision. This could potentially allow for unauthorized access or execution of code within the sandboxed environment.

Defensive priority

High priority due to CVSS score of 7.7 and potential for exploitation

Recommended defensive actions

  • Update Twig to version 3.26.0 or later
  • Review and adjust sandbox configurations to ensure proper security policy enforcement
  • Monitor for and address potential exploitation attempts
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

Evidence from official CVE and NVD sources indicates a vulnerability in Twig template language for PHP, affecting versions between 3.9.0 and 3.26.0. The issue allows a sandboxed template to render an inner template without security policy enforcement via the template_from_string() function. Limited details are available, and further investigation is recommended. Additional review of vendor documentation and security advisories is necessary to understand the full scope of this vulnerability.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-46634 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-46634

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-46634 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-46634

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.