Lucene search
K

CVE-2026-48806 Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys

🗓️ 14 Jul 2026 21:28:08Reported by GitHub_MType 
cvelist
 cvelist
🔗 www.cve.org👁 9 Views

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 SandboxExtensio...

Related
Affected
Refs
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-48806
14 Jul 202621:28
attackerkb
Circl
CVE-2026-48806
27 May 202613:21
circl
CVE
CVE-2026-48806
14 Jul 202621:28
cve
Debian CVE
CVE-2026-48806
27 May 202613:21
debiancve
EUVD
EUVD-2026-44513
14 Jul 202621:28
euvd
Friends Of PHP
Sandbox `__toString()` policy bypass via dynamic mapping keys
1 Jan 197000:00
friendsofphp
Github Security Blog
Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys
30 Jun 202618:42
github
NVD
CVE-2026-48806
14 Jul 202622:17
nvd
OSV
DEBIAN-CVE-2026-48806
27 May 202619:48
osv
OSV
GHSA-5V5V-WW74-355V Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys
30 Jun 202618:42
osv
Rows per page
[
  {
    "vendor": "twigphp",
    "product": "Twig",
    "versions": [
      {
        "version": "< 3.27.0",
        "status": "affected"
      }
    ]
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Jul 2026 21:28Current
CVSS 47.1
9