Twigphp Twig
Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`
Twig is a template language for PHP. Prior to 3.27.0, the column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read public or magic properties not allowed by the sandbox policy. This issue is fixed in version 3.27.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by NVD · CWE-693
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
twigphp Twig
- < 3.27.0
Fixed in 3.27.0
Mitigation
Upgrade Twig to 3.27.0 or later.
References
- Vendor advisory github.com/twigphp/Twig/security/advisories/GH…
- Patch github.com/twigphp/Twig/commit/09c6706407ed7b1…
- Release notes github.com/twigphp/Twig/releases/tag/v3.27.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.