Liquid
Python Liquid: Infinite loop when parsing malformed `{% case %}` tags
Python Liquid is a Python engine for the Liquid template language. Prior to 2.2.1, given a malformed {% case %} tag without an associated {% when %} or {% else %} block and no terminating {% endcase %} tag, Python Liquid hangs in an infinite loop at parse time because liquid.TokenStream.eof did not give the EOF token matching kind and value fields, allowing malicious template authors to craft templates for a denial of service attack. This issue is fixed in version 2.2.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-835
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
jg-rp liquid
- < 2.2.1
Fixed in 2.2.1
Mitigation
Upgrade liquid to 2.2.1 or later.
References
- Vendor advisory github.com/jg-rp/liquid/security/advisories/GH…
- Patch github.com/jg-rp/liquid/commit/26db8931cf35e84…
- Release notes github.com/jg-rp/liquid/releases/tag/v2.2.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.