CVE-2026-48805: Php twig · Twig is a template language for PHP
Affects php-twigSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical · fixed in 3.27.0 : patch php-twig as a priority.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.27.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10php-twigpkg:deb/ubuntu/php-twig?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10php-twigpkg:deb/ubuntu/php-twig?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSphp-twigpkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to Twig version 3.27.0 or later to resolve this vulnerability. Since the issue is fixed in version 3.27.0, applying this official fix is the recommended remediation. Check for updated Ubuntu package versions that include this fix and apply them promptly.
Description
CVE-2026-48805 is a vulnerability in the PHP Twig template language prior to version 3.27.0. It allows legacy internal wrapper functions to bypass sandbox callable restrictions because they do not forward the current sandbox state. This vulnerability affects multiple specific Ubuntu package versions of php-twig. The issue is resolved in Twig version 3.27.0. The vulnerability has a high CVSS score of 9.1, indicating a critical impact on confidentiality and integrity without requiring privileges or user interaction.
References
- ubuntu.com/security/CVE-2026-48805 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-48805 (opens in a new tab)
- symfony.com/blog/cve-2026-48805-sandbox-state-regression-in-deprecated-internal-wrappers-in-src-resources-core-php (opens in a new tab)
- github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b (opens in a new tab)
- github.com/twigphp/Twig/releases/tag/v3.27.0 (opens in a new tab)
- github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq (opens in a new tab)