Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

ubuntu логотип

CVE-2025-27516

Опубликовано: 05 мар. 2025
Источник: ubuntu
Приоритет: medium
CVSS3: 8.8

Описание

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.

РелизСтатусПримечание
devel

released

3.1.5-2ubuntu1
esm-infra-legacy/trusty

released

2.7.2-2ubuntu0.1~esm6
esm-infra/bionic

released

2.10-1ubuntu0.18.04.1+esm4
esm-infra/focal

released

2.10.1-2ubuntu0.5
esm-infra/xenial

released

2.8-1ubuntu0.1+esm5
focal

released

2.10.1-2ubuntu0.5
jammy

released

3.0.3-1ubuntu0.4
noble

released

3.1.2-1ubuntu1.3
oracular

released

3.1.3-1ubuntu1.24.10.2
plucky

released

3.1.5-2ubuntu1

Показывать по

8.8 High

CVSS3

Связанные уязвимости

CVSS3: 7.3
redhat
8 месяцев назад

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.

CVSS3: 8.8
nvd
8 месяцев назад

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.

CVSS3: 8.8
msrc
8 месяцев назад

Jinja sandbox breakout through attr filter selecting format method

CVSS3: 8.8
debian
8 месяцев назад

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight ...

suse-cvrf
7 месяцев назад

Security update for python-Jinja2

8.8 High

CVSS3