Lucene search

K
gentooGentoo FoundationGLSA-202107-19
HistoryJul 08, 2021 - 12:00 a.m.

Jinja: Denial of service

2021-07-0800:00:00
Gentoo Foundation
security.gentoo.org
20
jinja
denial of service
urlize filter
inefficient regular expression
cpu consumption
crafted input
upgrade
resolution

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

AI Score

5.9

Confidence

High

EPSS

0.002

Percentile

57.3%

Background

Jinja is a template engine written in pure Python.

Description

The ‘urlize’ filter in Jinja utilized an inefficient regular expression that could be exploited to consume excess CPU.

Impact

An attacker could cause a Denial of Service condition via crafted input to the ‘urlize’ Jinja filter.

Workaround

There is no known workaround at this time.

Resolution

All Jinja users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-python/jinja-2.11.3"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-python/jinja< 2.11.3UNKNOWN

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

AI Score

5.9

Confidence

High

EPSS

0.002

Percentile

57.3%