CVE-2026-46640
1 advisory.
Packagist/twig/twig CVE-2026-46640: high
Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation
Action: Upgrade twig/twig to 3.26.0 or later.
composer require twig/twig:3.26.0Affected
| introduced | fixed | last affected |
|---|---|---|
| 3.15.0 | 3.26.0 | - |
Fixed versions
| 3.26.0 |
Sources
- osv: GHSA-45vw-wh46-2vx8
- https://github.com/twigphp/Twig/security/advisories/GHSA-45vw-wh46-2vx8
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-46640.yaml
- https://github.com/twigphp/Twig
- https://github.com/vladko312/extras/blob/main/CVE-2026-46640.py
- https://symfony.com/cve-2026-46640
CVE-2026-46640 · published · modified · JSON