Skip to content

← Public intelligence

Packagist package

twig/intl-extra

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Low, CVSS 2.7PackagistPublished

    twig/intl-extra: Unbounded formatter memoisation in keyed on template-controlled arguments

    CVE-2026-46629 · GHSA-35wc-cvqg-78fp

    Affected
    • Packagist twig/intl-extra < 3.26.0
    Fixed in
    3.26.0· Vendor fix available
    Issue
    IntlExtension memoises every \IntlDateFormatter and \NumberFormatter it creates in instance-level arrays keyed on a hash that includes locale, pattern, attrs and other values that are ordinary named arguments of the formatdatetime / formatdate / formattime / formatnumber / formatcurrency filters. There is no size limit and no eviction. A template that iterates over many distinct pattern (or locale, or groupingused, ...) values therefore allocates one ICU formatter object per distinct value and pins it for the entire lifetime of the Twig\Environment. Because ICU allocates its backing buffers outside the Zend memory manager, this growth is not bounded by memorylimit. On long-running runtimes (RoadRunner, Swoole, FrankenPHP worker mode, ReactPHP) where the Environment outlives a single request, the cache also accumulates across requests. Resolution The formatter caches are now bounded in size (100 entries each) and evict on a FIFO basis. Credits Twig would like to thank…

    Recommended action: Upgrade to 3.26.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →