CVE-2026-48806
Last modified
CVE-2026-48806 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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(). EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Symfony | Twig | < 3.27.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-48806?
How severe is CVE-2026-48806?
How do I fix CVE-2026-48806?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-4880The Barcode Scanner (+Mobile App) – Inventory manager, Order…9.8
- CVE-2026-48800Notepad++ is a free and open-source source code editor. Prio…7.8
- CVE-2026-48801linkify-it is a links recognition library with full Unicode …7.5
- CVE-2026-48802python-engineio is a Python implementation of the Engine.IO …7.5
- CVE-2026-48804python-socketio is a Python implementation of the Socket.IO …7.5
- CVE-2026-48805Twig is a template language for PHP. Prior to 3.27.0, deprec…9.1
- CVE-2026-48807Twig is a template language for PHP. Prior to 3.27.0, the sa…9.1
- CVE-2026-48808Twig is a template language for PHP. Prior to 3.27.0, the co…7.5
- CVE-2026-48809python-engineio is a Python implementation of the Engine.IO …7.5
- CVE-2026-4881In affected versions of Octopus Server, permissions were not…6.5
- CVE-2026-48810FreeScout is a free help desk and shared inbox built with PH…4.3
- CVE-2026-48811FreeScout is a free help desk and shared inbox built with PH…4.3
Are you affected by CVE-2026-48806?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
