CVE-2026-133773

NameCVE-2026-133773
DescriptionThe 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-twig (PTS)bookworm, bookworm (security)3.5.1-1+deb12u3vulnerable
trixie (security), trixie3.27.0-0+deb13u1vulnerable
forky3.30.0-1vulnerable
sid3.31.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-twigsource(unstable)3.31.1-1

Notes

https://symfony.com/blog/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled-options
https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25
https://github.com/twigphp/Twig/commit/6f9962f230425da39e970023a322d641c9089035 (v3.31.1)

Search for package or bug name: Reporting problems