PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-46639 twigphp CVE debrief

CVE-2026-46639 is a vulnerability in the Twig template language for PHP, specifically in the object-destructuring assignment feature. From version 3.24.0 until 3.26.0, the sandbox argument in CoreExtension::getAttribute() is hardcoded to false, which disables property and method policy checks. This allows an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. The issue is fixed in version 3.26.0. Users of the Twig template language for PHP, particularly those who use sandboxed Twig templates, should be aware of this vulnerability and take steps to mitigate it.

Vendor
twigphp
Product
Twig
CVSS
HIGH 7.1
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 the Twig template language for PHP, particularly those who use sandboxed Twig templates, should be aware of this vulnerability. An attacker with write access to a sandboxed template could potentially exploit this issue to read public properties or invoke public getters on objects passed to the template engine. Affected operators, platforms, vulnerability-management teams, and security teams should review and act on this vulnerability.

Technical summary

The vulnerability exists in the Twig template language for PHP, specifically in the object-destructuring assignment feature. From version 3.24.0 until 3.26.0, the sandbox argument in CoreExtension::getAttribute() is hardcoded to false, which disables property and method policy checks. This allows an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. The issue is fixed in version 3.26.0.

Defensive priority

High

Recommended defensive actions

  • Update to Twig version 3.26.0 or later
  • Review and restrict write access to sandboxed Twig templates
  • Monitor for suspicious activity in Twig template usage
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The CVE record was published on 2026-07-14T22:16:56.697Z and was last modified on 2026-07-16T03:11:02.850Z. The NVD entry is currently Analyzed. Evidence is limited to public sources and may not reflect the full scope or impact of this vulnerability. Defenders should verify affected systems and review official advisories for specific guidance.

Official resources

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-14T22:16:56.697Z and has not been modified since then. The NVD entry is currently Analyzed.