php-twig — security advisory
Twig is a template language for PHP. Prior to 3.27.0, the column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read public or magic properties not allowed by 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-48808
- 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 column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read public or magic properties not allowed by the sandbox policy. This issue is fixed in version 3.27.0.
osv:DEBIAN-CVE-2026-48808
php-twig
Fixed versions: 3.27.0-1
Complete source record
{
"id": "2f558806d4afb817ef4218368242763b9b0c753a0a2351542709265aae076cbc",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-48808",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-48808",
"summary": "Twig is a template language for PHP. Prior to 3.27.0, the column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read public or magic properties not allowed by the sandbox policy. This issue is fixed in version 3.27.0.",
"evidence": "osv:DEBIAN-CVE-2026-48808",
"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": "high",
"structured": {
"id": "DEBIAN-CVE-2026-48808",
"aliases": [
"DEBIAN-CVE-2026-48808"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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-48808.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-25T09:47:34.882271822Z",
"provider": "osv",
"upstream": [
"CVE-2026-48808"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-48808"
]
},
"related_cves": [
{
"value": "CVE-2026-48808",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 445111,
"published_at": "2026-07-14T22:17:05.427+00:00"
}