CVE-2026-46629
published medium CVSS 4.0 · 5.3Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| twigphp | — | Twig< 3.26.0 | Affected | Not stated | GitHub_M |
| Debian | bookworm | php-twig | Advisory build | 3.5.1-1+deb12u3 | DSA-6320-1 |
| Debian | trixie | php-twig | Advisory build | 3.27.0-0+deb13u1 | DSA-6311-1 |
Description
Twig is a template language for PHP. Prior to 3.26.0, twig/intl-extra memoises IntlDateFormatter and NumberFormatter instances in arrays keyed by template-controlled filter arguments such as locale, pattern, and attrs, allowing a template to allocate many ICU formatter objects that remain pinned for the lifetime of the Twig\Environment. This issue is fixed in version 3.26.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| twigphp | Twig | < 3.26.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
3Provider assertions
2GitHub_M · cna
Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e593bdb5af423660af18b728a7e9f6355a095b51f8b4b2ae9aefbec4d3aed216
- Ingested
- 23 Sep 2026, 09:16:38 UTC
- Source record
- Official CVE record