CVE Explorer
CVE-2026-48807
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-863","description":"CWE-863: Incorrect Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-693","description":"CWE-693: Protection Mechanism Failure","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.27.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":7.1,"baseSeverity":"HIGH","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-863","description":"CWE-863: Incorrect Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-693","description":"CWE-693: Protection Mechanism Failure","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/twigphp/Twig/releases/tag/v3.27.0","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/releases/tag/v3.27.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-8x9c-rmqh-456c","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-8x9c-rmqh-456c"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c191012602c199cebaa0528dfe3d1c0f373f53c52b1de2cd64e6d6638392a406 · sha256:4721530633e25fce… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.