PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-46638 twigphp CVE debrief

A security bypass vulnerability exists in Twig template language for PHP, versions prior to 3.26.0. The {% sandbox %}{% include %} construct can include a template previously loaded outside the sandbox without re-invoking checkSecurity(), potentially allowing the cached template to use denied tags, filters, and functions. This issue is fixed in version 3.26.0. Users of Twig template language for PHP, particularly those using versions prior to 3.26.0, should be aware of this security bypass vulnerability.

Vendor
twigphp
Product
Twig
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-14
Original CVE updated
2026-07-16
Advisory published
2026-07-14
Advisory updated
2026-07-16

Who should care

Users of Twig template language for PHP, particularly those using versions prior to 3.26.0, should be aware of this security bypass vulnerability and review their deployments for potential exposure.

Technical summary

A security bypass vulnerability exists in Twig template language for PHP, versions prior to 3.26.0. The {% sandbox %}{% include %} construct can include a template previously loaded outside the sandbox without re-invoking checkSecurity(), potentially allowing the cached template to use denied tags, filters, and functions. This issue is fixed in version 3.26.0. Affected users of Twig template language for PHP should review their deployments for potential exposure, particularly those using versions prior to 3.26.0, and consider upgrading to mitigate this security bypass vulnerability.

Defensive priority

Medium priority, as the vulnerability has a CVSS score of 6 and is classified as MEDIUM severity.

Recommended defensive actions

  • Upgrade to Twig version 3.26.0 or later
  • Review and update template usage to ensure sandboxing
  • Monitor for potential exploitation attempts
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • 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

Evidence notes

The CVE record and NVD detail provide information on the vulnerability, while the vendor advisory and patch notes offer guidance on mitigation. Evidence is limited to public sources and may not reflect the full scope or impact of the vulnerability. Defenders should verify affected systems, review vendor guidance, and monitor for potential exploitation attempts.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-46638 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-46638 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

    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.