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.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-46639 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-46639
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-46639 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-46639
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/releases/tag/v3.26.0
[email protected] - Release Notes
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/twigphp/Twig/security/advisories/GHSA-mm6w-gr99-p3jj
[email protected] - Vendor Advisory
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.