CVE-2026-48807 json
Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters
published 2026-06-30 4 mo ago modified 2026-10-24 15 d ago also EUVD-2026-44514 , GHSA-8x9c-rmqh-456c
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
Twig is a template language for PHP. Prior to 3.27.0, the sandbox __toString() checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings without consulting the sandbox policy. This issue is fixed in version 3.27.0.
Patch / fix
- packagist twig/twig 3.27.0
- symfony twig 3.27.0
- php-twig Debian 14 3.27.0-1
debian advisories DEBIAN-CVE-2026-48807
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-48807 updated cvss 8.5
twig/twig: Twig: Sandbox bypass allows information disclosure
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.1 | 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 |
| CNA | 4.0 | 7.1 | 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 |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | twig/twig | <3.27.0 |
3.27.0 |
Affected products
- twigphp Twig
Classification
References
-
github.com
/twigphp/Twig/security/advisories/GHSA-8x9c-rmqh-456c
web, vendor-advisory
-
github.com
/twigphp/Twig/releases/tag/v3.27.0
web, release-notes
-
github.com
/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-48807.yaml
web
-
github.com
/twigphp/Twig
package
-
symfony.com
/blog/cve-2026-48807-sandbox-tostring-policy-bypass-via-traversable-in-join-replace-and-in-not-in-operators
web
Sources
- CVE List CVE-2026-48807
- GitHub Advisory GHSA-8x9c-rmqh-456c
- NVD CVE-2026-48807
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.