CVE-2026-133766
CVE-2026-133766 — Sandbox `__toString()` policy bypass via spread arguments
Since Twig 3.28.0, the sandbox skips the toString() check of an argument whose PHP parameter can't hold a string, like an int. A spread argument was mapped to a single parameter, although it fills every parameter from its position on. A sandboxed template could therefore call a denied toString() method: {{ tag(...[1, obj]) }} Here, the first parameter of tag() is an int, and a later one accepts strings. Applications are affected when they allow such a function, filter or test in the sandbox. No built-in callable is affected. A spread argument is now checked unless every parameter that it can fill has a safe type.
Published Updated Sources: NVD, Twig (CNA), GitHub
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
n/a
FIRST has not published a score
CVSS base
2.3
low
Remediation
The vendor's own words where we have them.
Upgrade Twig/twig to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Twig | twig/twig | 3.28.0 to < 3.31.1 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Attack Complexity
Low
Attack Vector
Network
Privileges Req
Low
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 2.3 | CVSS 4.0 | low | n/a | n/a | Twig (CNA) |
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness & attack patterns
- CWE-693
- CWE-863Incorrect Authorization
Inferred from the weakness class — not observed against this CVE.
- T1574.010Hijack Execution Flow: ServicesFile Permissions Weakness
- T1083File and Directory Discovery
- T1574.005Hijack Execution Flow: Executable Installer File Permissions Weakness
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Twig/twig.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 2.3 (AV:N)
Nov 24, 2026 · NVD
Initial · CVE published
Nov 24, 2026 · NVD
References
3 on the record
- github.com/twigphp/Twig/commit/7af821c372f52cc9447afeba9e042de44b738222
Exploit, Third Party Advisory
- github.com/twigphp/Twig/security/advisories/GHSA-56wp-8m9q-4354
Exploit, Third Party Advisory
- symfony.com/cve-2026-133766
Vendor Advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-54253 Adobe Experience Manager | Incorrect Authorization (CWE-863)CVSS 10.0 · CISA KEV
- CVE-2013-2465 Oracle Java SE Unspecified VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2019-1003030 Jenkins Matrix Project Plugin Remote Code Execution VulnerabilityCVSS 9.9 · CISA KEV
- CVE-2026-123218 IBM Aspera Faspex Authorization BypassCVSS 9.8 · CISA KEV
- CVE-2025-40536 SolarWinds Web Help Desk Security Control Bypass VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-45519 Synacor Zimbra Collaboration Suite (ZCS) Command Execution VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Twigevery CVE for this vendor
- Access Controlsame class
- CWE-693other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-133766 is Sandbox `__toString()` policy bypass via spread arguments, a low vulnerability affecting Twig/twig from Twig. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-133766. Public exploit evidence is: A public PoC is not confirmed from current sources for CVE-2026-133766. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 2.3 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.