# CVE-2026-46629: Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled arguments

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 39% of CVEs (2026-11-30)
- Published: 2026-05-21T21:23:53.000Z
- Modified: 2026-10-24T22:10:00.210Z
- Also known as: GHSA-35wc-cvqg-78fp
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- twigphp Twig: < 3.26.0
- twig/intl-extra (Packagist): before 3.26.0
- symfony twig: before 3.26.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/twigphp/Twig/security/advisories/GHSA-35wc-cvqg-78fp> (vendor-advisory, web)
- <https://github.com/twigphp/Twig/commit/6add9066fc5c0455eb764c1f3af6e4e4e3562419> (patch)
- <https://github.com/twigphp/Twig/releases/tag/v3.26.0> (release-notes)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/intl-extra/CVE-2026-46629.yaml> (web)
- <https://github.com/twigphp/Twig> (package)
- <https://symfony.com/cve-2026-46629> (web)

## Sources

- CVE List: [CVE-2026-46629](https://www.cve.org/CVERecord?id=CVE-2026-46629), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-35wc-cvqg-78fp](https://github.com/advisories/GHSA-35wc-cvqg-78fp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46629](https://nvd.nist.gov/vuln/detail/CVE-2026-46629), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-46629 · Whole record: https://cve.day/CVE-2026-46629.json · Rebuilt by cve.day 2026-11-25T22:59:28.236Z
