CVE-2020-28493: Regular Expression Denial of Service (ReDoS)
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.5% (FIRST EPSS); higher than 89.6% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: babel (AlmaLinux:8) 2.5.1-10.module_el8.6.0+2781+fed64c13; python-nose-docs (AlmaLinux:8) 1.3.7-31.module_el8.6.0+2781+fed64c13, 1.3.7-31.module_el8.5.0+2569+5c5719bc; python-psycopg2-doc (AlmaLinux:8) 2.7.5-7.module_el8.6.0+2781+fed64c13.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to babel (AlmaLinux:8) 2.5.1-10.module_el8.6.0+2781+fed64c13; python-nose-docs (AlmaLinux:8) 1.3.7-31.module_el8.6.0+2781+fed64c13, 1.3.7-31.module_el8.5.0+2569+5c5719bc; python-psycopg2-doc (AlmaLinux:8) 2.7.5-7.module_el8.6.0+2781+fed64c13 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
This 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.
- BDU:2022-05230
- GHSA-g3rq-g295-4j3m
- ALSA-2021:4151
- ALSA-2021:4161
- ALSA-2021:4162
- openSUSE-SU-2024:11208-1
- openSUSE-SU-2024:13930-1
- openSUSE-SU-2026:11992-1
- PYSEC-2021-66
- RHSA-2021:3252
- RHSA-2021:3254
- RHSA-2021:4151
- RHSA-2021:4161
- RHSA-2021:4162
- RLSA-2021:4151
- RLSA-2021:4161
- RLSA-2021:4162
- SUSE-SU-2021:0601-1
- SUSE-SU-2021:0602-1
- SUSE-SU-2021:0603-1
- Published
- Feb 1, 2021
- Updated
- Jun 16, 2026
- EPSS
- 3.5% · 89th percentile
- CWE
- CWE-400
Report tools
Action score
22
Low priority for now.
- CVSS
- 21 / 40 · 5.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.5%
CNA vs NVD score
- NVD
- 5.3
- CNA · snyk
- 5.3
- agree
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| palletsprojects | jinja | cpe:2.3:a:palletsprojects:jinja |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (snyk). Independent of NVD's CPE analysis and usually ahead of it.
n/a jinja2
- 0.0.0 and later · before unspecifiedaffected
- unspecified and later · before 2.11.3affected
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora33
- palletsprojects jinjabefore 2.11.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | babel | before 2.5.1-10.module_el8.6.0+2781+fed64c13 | 2.5.1-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-nose-docs | before 1.3.7-31.module_el8.6.0+2781+fed64c13 | 1.3.7-31.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-nose-docs | before 1.3.7-31.module_el8.5.0+2569+5c5719bc | 1.3.7-31.module_el8.5.0+2569+5c5719bc |
| AlmaLinux:8 | python-psycopg2-doc | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-sqlalchemy-doc | before 1.3.2-2.module_el8.6.0+2781+fed64c13 | 1.3.2-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-sqlalchemy-doc | before 1.3.2-2.module_el8.5.0+2569+5c5719bc | 1.3.2-2.module_el8.5.0+2569+5c5719bc |
| AlmaLinux:8 | python2-attrs | before 17.4.0-10.module_el8.6.0+2781+fed64c13 | 17.4.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-babel | before 2.5.1-10.module_el8.6.0+2781+fed64c13 | 2.5.1-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-backports | before 1.0-16.module_el8.6.0+2781+fed64c13 | 1.0-16.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-backports-ssl_match_hostname | before 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-bson | before 3.7.0-1.module_el8.6.0+2781+fed64c13 | 3.7.0-1.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-chardet | before 3.0.4-10.module_el8.6.0+2781+fed64c13 | 3.0.4-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-coverage | before 4.5.1-4.module_el8.6.0+2781+fed64c13 | 4.5.1-4.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-Cython | before 0.28.1-7.module_el8.6.0+2781+fed64c13 | 0.28.1-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-dns | before 1.15.0-10.module_el8.6.0+2781+fed64c13 | 1.15.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs-info | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docutils | before 0.14-12.module_el8.6.0+2781+fed64c13 | 0.14-12.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-funcsigs | before 1.0.2-13.module_el8.6.0+2781+fed64c13 | 1.0.2-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-idna | before 2.5-7.module_el8.6.0+2781+fed64c13 | 2.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-ipaddress | before 1.0.18-6.module_el8.6.0+2781+fed64c13 | 1.0.18-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-jinja2 | before 2.10-9.module_el8.6.0+2781+fed64c13 | 2.10-9.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-markupsafe | before 0.23-19.module_el8.6.0+2781+fed64c13 | 0.23-19.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-mock | before 2.0.0-13.module_el8.6.0+2781+fed64c13 | 2.0.0-13.module_el8.6.0+2781+fed64c13 |
+96
Same product
palletsprojects: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-10745In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.35Monitor
- CVE-2019-10906In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape.35Monitor
- CVE-2024-22195Jinja vulnerable to Cross-Site Scripting (XSS)24Monitor
Published before and after this one in the same product
- Later →CVE-2024-34064May 6, 2024 · Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter21Monitor
- Later →CVE-2024-56201Dec 23, 2024 · Jinja has a sandbox breakout through malicious filenames21Monitor
- Later →CVE-2024-56326Dec 23, 2024 · Jinja has a sandbox breakout through indirect reference to format method21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python-nose-docs | 1.3.7-31.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python-psycopg2-doc | 2.7.5-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python-sqlalchemy-doc | 1.3.2-2.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-backports | 1.0-16.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-backports-ssl_match_hostname | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-bson | 3.7.0-1.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-chardet | 3.0.4-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 · AlmaLinux:8 | Package registry (OSV) |
| alpine:py3-jinja2 | 1.11.3-r0 · Alpine:v3.14 | Package registry (OSV) |
| debian:jinja2 | 2.11.3-1 · Debian:12 | Package registry (OSV) |
| opensuse:python-Jinja2 | 3.0.1-3.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| PyPI:jinja2 | 2.11.3 | Package registry (OSV) |
| red hat:python27-babel | 0:0.9.6-10.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-babel | 0:0.9.6-10.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-debug | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-debuginfo | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-devel | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-jinja2 | 0:2.6-16.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-libs | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-pygments | 0:1.5-5.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-test | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-python-tools | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:python27-tkinter | 0:2.7.18-3.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| rocky linux:babel | 0:2.5.1-10.module+el8.5.0+706+735ec4b3 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:Cython | 0:0.28.1-7.module+el8.5.0+706+735ec4b3 · Rocky Linux:8 | Package registry (OSV) |
+11
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-21-0911 · Nov 10, 2021(RedHat Güvenlik Güncellemesi)
Not on record for this CVE: EPSS history · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- Low
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.