CVE-2026-133773Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled…
The html_to_markdown filter of twig/markdown-extra keeps an HtmlConverter for each distinct mapping of options it receives. They're kept in a static array, with no size limit and no eviction. The options are an argument of the filter. A template that passes options taken from the input, or a sandboxed template, can therefore make this cache grow without limit. The cache outlives the environment, so it fills the memory of long-running workers. The cache now keeps at most 100 converters, like the formatter caches of IntlExtension.
What to do
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | php-twig | Fix pending | DEBIAN-CVE-2026-133773 | |
| Debian 13 | php-twig | Fix pending | DEBIAN-CVE-2026-133773 | |
| Debian 12 | php-twig | Fix pending | DEBIAN-CVE-2026-133773 |
What the vendor says
As published in the CVE record by Symfony, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- twig/markdown-extra: affected: before 3.31.1; fixed in
3.31.1
Vendor advisories:
- https://symfony.com/cve-2026-133773 (vendor-advisory)
- https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25 (vendor-advisory)
- https://github.com/twigphp/Twig/commit/6f9962f230425da39e970023a322d641c9089035 (patch)
References
- https://symfony.com/cve-2026-133773
- https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25
- https://github.com/twigphp/Twig/commit/6f9962f230425da39e970023a322d641c9089035
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.