CVE-2020-28493

NameCVE-2020-28493
DescriptionThis affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the `_punctuation_re regex` operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs982736

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jinja2 (PTS)jessie, jessie (lts)2.7.3-1+deb8u1vulnerable
stretch (lts), stretch2.8-1+deb9u1vulnerable
buster (security), buster, buster (lts)2.10-2+deb10u1vulnerable
bullseye2.11.3-1fixed
bookworm3.1.2-1fixed
sid, trixie3.1.3-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jinja2source(unstable)2.11.3-1982736

Notes

[buster] - jinja2 <no-dsa> (Minor issue)
[stretch] - jinja2 <no-dsa> (Minor issue)
https://github.com/pallets/jinja/pull/1343
https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994
[jessie] - jinja2 <no-dsa> (Minor issue)

Search for package or bug name: Reporting problems