Skip to content
Heist/ feed
Back to feed
High

php-twig — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-48808

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
2.11.3-2, 2.12.1-1, 2.12.2-1, 2.12.3-1, 2.12.5-1, 2.12.5-1ubuntu0.1~esm1, 2.12.5-1ubuntu0.1~esm2, 3.20.0-2ubuntu1, 3.23.0-2build5, 3.23.0-2build7, 3.23.0-2ubuntu0.1~esm1, 3.27.1-1, 3.28.0-1, 3.3.2-1ubuntu3, 3.3.4-1, 3.3.6-1, 3.3.7-1, 3.3.8-2ubuntu4, 3.3.8-2ubuntu4+esm1, 3.3.8-2ubuntu4+esm2, 3.7.0-1, 3.7.1-1, 3.8.0-2, 3.8.0-2ubuntu0.1~esm1, 3.8.0-2ubuntu1, 3.8.0-2ubuntu1+esm1
Fixed versions
Not specified
CVEs
CVE-2026-48808
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-48808

core-osv · Original source

Published 14 Jul 2026, 22:17 UTC

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:UBUNTU-CVE-2026-48808

php-twig

Fixed versions: Not specified

php-twig

Fixed versions: Not specified

php-twig

Fixed versions: Not specified

php-twig

Fixed versions: Not specified

php-twig

Fixed versions: Not specified

php-twig

Fixed versions: Not specified

Complete source record
{
  "id": "73f6b2e34a1b63249656e4d43d83647c5ea3ae0abd6323bf8dd2629fa651115e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48808",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-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:UBUNTU-CVE-2026-48808",
    "products": [
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.11.3-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.5-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.12.5-1ubuntu0.1~esm2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.2-1ubuntu3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.7-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.8-2ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.8-2ubuntu4+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.3.8-2ubuntu4+esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.7.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.0-2ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.0-2ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.0-2ubuntu1+esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.20.0-2ubuntu1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.23.0-2build7",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.27.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.28.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-twig",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.20.0-2ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.23.0-2build5",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.23.0-2build7",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.23.0-2ubuntu0.1~esm1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-48808",
      "aliases": [
        "UBUNTU-CVE-2026-48808"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "2.11.3-2",
            "2.12.1-1",
            "2.12.2-1",
            "2.12.3-1",
            "2.12.5-1",
            "2.12.5-1ubuntu0.1~esm1",
            "2.12.5-1ubuntu0.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "2.12.5-1ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "3.3.2-1ubuntu3",
            "3.3.4-1",
            "3.3.6-1",
            "3.3.7-1",
            "3.3.8-2ubuntu4",
            "3.3.8-2ubuntu4+esm1",
            "3.3.8-2ubuntu4+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-cache-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              },
              {
                "binary_name": "php-twig-string-extra",
                "binary_version": "3.3.8-2ubuntu4+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "3.7.0-1",
            "3.7.1-1",
            "3.8.0-2",
            "3.8.0-2ubuntu0.1~esm1",
            "3.8.0-2ubuntu1",
            "3.8.0-2ubuntu1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-cache-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              },
              {
                "binary_name": "php-twig-string-extra",
                "binary_version": "3.8.0-2ubuntu1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.20.0-2ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-cache-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "3.20.0-2ubuntu1"
              },
              {
                "binary_name": "php-twig-string-extra",
                "binary_version": "3.20.0-2ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.23.0-2build7",
            "3.27.1-1",
            "3.28.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-cache-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "3.28.0-1"
              },
              {
                "binary_name": "php-twig-string-extra",
                "binary_version": "3.28.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-twig",
            "purl": "pkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "3.20.0-2ubuntu1",
            "3.23.0-2build5",
            "3.23.0-2build7",
            "3.23.0-2ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48808.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-twig",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-cache-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-cssinliner-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-extra-bundle",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-html-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-inky-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-intl-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-markdown-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "php-twig-string-extra",
                "binary_version": "3.23.0-2ubuntu0.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:23.650726849Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-48808"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-48808",
        "https://www.cve.org/CVERecord?id=CVE-2026-48808",
        "https://symfony.com/blog/cve-2026-48808-sandbox-property-allowlist-bypass-via-the-column-filter-under-sourcepolicyinterface"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-48808",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360478,
  "published_at": "2026-07-14T22:17:00+00:00"
}