Bug 2583231 (CVE-2026-133773)

Summary: CVE-2026-133773 twig/markdown-extra: twig/markdown-extra: Denial of Service via unbounded cache in html_to_markdown filter
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in twig/markdown-extra. An attacker can cause a Denial of Service (DoS) by supplying varied configuration options to the html_to_markdown filter through user-controlled input or sandboxed templates. Because the filter caches converters internally without size limitations or eviction, each unique combination of options creates a persistent entry. This unbounded cache growth can exhaust application memory and crash long-running worker processes.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-24 13:23:16 UTC
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.