{"answers":{"affected":"3 open source packages ship an affected version, including jinja2 and Jinja2. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-28493 in the wild and no public exploit code.","fix":"Upgrade jinja2 to 2.11.3 or later.","what":"CVE-2020-28493 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 1 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-28493 and fix it if it is affected.\n\nWhat it is: CVE-2020-28493 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 1 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-28493 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jinja2 (PyPI): affected all versions; fixed in 2.11.3\n- jinja2 (PyPI): affected all versions; fixed in 2.11.3\n- Jinja2 (PyPI): affected all versions; fixed in 2.11.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-28493/ (Markdown: https://insights.sbomify.com/CVE-2020-28493/index.md)","id":"CVE-2020-28493","markdown":"https://insights.sbomify.com/CVE-2020-28493/index.md","name":"CVE-2020-28493","record":{"aliases":["ALPINE-CVE-2020-28493","ALSA-2021:4161","AZL-40857","AZL-75813","DEBIAN-CVE-2020-28493","GHSA-g3rq-g295-4j3m","MGASA-2021-0178","OESA-2021-1190","PYSEC-2021-66","RHSA-2021:4161","RLSA-2021:4161","SNYK-PYTHON-JINJA2-1012994","SUSE-SU-2021:0601-1","SUSE-SU-2021:0602-1","SUSE-SU-2021:0603-1","SUSE-SU-2021:0607-1","SUSE-SU-2021:0654-1","SUSE-SU-2021:14644-1","UBUNTU-CVE-2020-28493","USN-5701-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python templating library","requires_auth":"none","summary":"Attackers can cause denial of service in applications using Jinja2 by exploiting a regular expression vulnerability in the urlize filter.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"jinja","vendor":"palletsprojects"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"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.","ecosystems":["AlmaLinux:8","PyPI","Red Hat:enterprise_linux:8::appstream","Rocky Linux:8","SUSE:Enterprise Storage 6","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Python 2 15 SP2","SUSE:Linux Enterprise Point of Sale 12 SP2","SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","SUSE:Linux Enterprise Server 11-PUBCLOUD","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Manager Client Tools 12","SUSE:Manager Proxy 4.0","SUSE:Manager Retail Branch Server 4.0","SUSE:Manager Server 4.0","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2020-28493","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"denial_of_service","year":"2020"},"n_packages":35,"n_references":5,"next":{"headline":"Command Injection","id":"CVE-2020-28494"},"packages":[{"ecosystem":"PyPI","fixed":["2.11.3"],"introduced":["0"],"last_affected":[],"package":"Jinja2","purl":null,"source":"GHSA-g3rq-g295-4j3m"},{"ecosystem":"PyPI","fixed":["2.11.3"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"GHSA-g3rq-g295-4j3m"},{"ecosystem":"PyPI","fixed":["2.11.3"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"PYSEC-2021-66"},{"ecosystem":"AlmaLinux:8","fixed":["2.10.1-3.el8"],"introduced":["0"],"last_affected":[],"package":"python3-jinja2","purl":"pkg:rpm/almalinux/python3-jinja2","source":"ALSA-2021:4161"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.10.1-3.el8"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2021:4161"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.10.1-3.el8"],"introduced":["0"],"last_affected":[],"package":"python3-jinja2","purl":"pkg:rpm/redhat/python3-jinja2","source":"RHSA-2021:4161"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.10.1-3.el8"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/rocky-linux/python-jinja2?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2021:4161"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["2.9.6-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2021:0603-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2.8-19.23.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2021:0607-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["2.8-19.23.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2021:0607-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 2 15 SP2","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP2","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Point of Sale 12 SP2","fixed":["2.8-22.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2012%20SP2","source":"SUSE-SU-2021:0601-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","fixed":["2.6-2.19.5.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-CLIENT-TOOLS","source":"SUSE-SU-2021:14644-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","fixed":["2.6-2.19.5.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-CLIENT-TOOLS","source":"SUSE-SU-2021:14644-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11-PUBCLOUD","fixed":["2.6-2.19.5.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011-PUBCLOUD","source":"SUSE-SU-2021:14644-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["2.8-19.23.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2021:0607-1"},{"ecosystem":"SUSE:Manager Proxy 4.0","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Manager%20Proxy%204.0","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.0","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.0","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:Manager Server 4.0","fixed":["2.10.1-3.10.2"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Manager%20Server%204.0","source":"SUSE-SU-2021:0654-1"},{"ecosystem":"SUSE:OpenStack Cloud 7","fixed":["2.8-22.11.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20OpenStack%20Cloud%207","source":"SUSE-SU-2021:0601-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["2.9.6-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2021:0603-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["2.10.1-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2021:0602-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["2.9.6-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2021:0603-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["2.10.1-3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2021:0602-1"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2020-28492"},"products":["jinja2"],"published":"2021-02-01","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Attackers can cause denial of service in applications using Jinja2 by exploiting a regular expression vulnerability in the urlize filter.","url":"https://insights.sbomify.com/CVE-2020-28493/"}