CriticalFix available
php-twig — security advisory
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.
- Products
- php-twig
- Affected versions
- 3.20.0-2, 3.21.1-1, 3.21.1-2, 3.21.1-3, 3.22.0-1, 3.22.0-2, 3.22.1-1, 3.22.1-2, 3.22.1-3, 3.22.2-1, 3.22.2-2, 3.23.0-1, 3.23.0-2, 3.24.0-1, 3.26.0-1
- Fixed versions
- 3.27.0-1
- CVEs
- CVE-2026-48807
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:52 UTC · Revision 2
Source evidence
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.
osv:DEBIAN-CVE-2026-48807
php-twig
Fixed versions: 3.27.0-1
Complete source record
{
"id": "46d82977cb795bad14d8732cab3f5935122d56c8eaec2a091e57feafd2ecd234",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-48807",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-48807",
"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.",
"evidence": "osv:DEBIAN-CVE-2026-48807",
"products": [
{
"name": {
"value": "php-twig",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.27.0-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "3.20.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.21.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.21.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.21.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.22.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.23.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.23.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.24.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.26.0-1",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2026-48807",
"aliases": [
"DEBIAN-CVE-2026-48807"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.27.0-1"
}
]
}
],
"package": {
"name": "php-twig",
"purl": "pkg:deb/debian/php-twig?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"3.20.0-2",
"3.21.1-1",
"3.21.1-2",
"3.21.1-3",
"3.22.0-1",
"3.22.0-2",
"3.22.1-1",
"3.22.1-2",
"3.22.1-3",
"3.22.2-1",
"3.22.2-2",
"3.23.0-1",
"3.23.0-2",
"3.24.0-1",
"3.26.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-48807.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-25T09:47:35.553078581Z",
"provider": "osv",
"upstream": [
"CVE-2026-48807"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-48807"
]
},
"related_cves": [
{
"value": "CVE-2026-48807",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 445134,
"published_at": "2026-07-14T22:17:05.09+00:00"
}