CVE-2026-48806
criticalTwig is a template language for PHP.
Vendor / product: Symfony — twig
Twig is a template language for PHP. Prior to 3.27.0, ArrayExpression does not guard dynamic mapping keys that are coerced to strings, allowing PHP to invoke __toString() on a Stringable object used as a mapping key without calling SandboxExtension::ensureToStringAllowed(). This issue is fixed in version 3.27.0.
CVSS
9.1
9.1 (CVSS v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2026-07-14 22:17
Modified: 2026-10-24 22:10
NVD status: Analyzed
Last synced 2 days ago
Verified against the source API 2026-10-27 07:07 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).
Affected products
symfony / twig <3.27.0
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
Patch / mitigation: https://github.com/twigphp/Twig/commit/9ff41014639ef0e8eb50ac7669191c309d863105
References
- https://github.com/twigphp/Twig/commit/9ff41014639ef0e8eb50ac7669191c309d863105 security-advisories@github.com
- https://github.com/twigphp/Twig/releases/tag/v3.27.0 security-advisories@github.com
- https://github.com/twigphp/Twig/security/advisories/GHSA-5v5v-ww74-355v security-advisories@github.com
Data sources
NVD CVE API 2.0 — fetched 2026-10-27 07:07 UTC · record ↗
