ADVISORIES

SUSE VEX

SUSEVEX-CVE-2025-27516

Moderate No fix available CVE-2025-27516

Details

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.

Affected packages

EcosystemPackageAffected versions
SUSE:Linux Enterprise High Performance Computing 15python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP1python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP1python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP1python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP2python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP2python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise High Performance Computing 15 SP2python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1-LTSSpython-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1-LTSSpython2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP1-LTSSpython3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2-LTSSpython-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2-LTSSpython2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15 SP2-LTSSpython3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15-LTSSpython-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15-LTSSpython2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 15-LTSSpython3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 16.0python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server 16.0python313-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP1python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP1python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP1python3-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP2python-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP2python2-Jinja2
All versions, no fix yet
SUSE:Linux Enterprise Server for SAP Applications 15 SP2python3-Jinja2
All versions, no fix yet
SUSE:Manager Proxy 4.3python-Jinja2
All versions, no fix yet
SUSE:Manager Proxy 4.3python3-Jinja2
All versions, no fix yet
SUSE:Manager Retail Branch Server 4.3python-Jinja2
All versions, no fix yet
SUSE:Manager Retail Branch Server 4.3python3-Jinja2
All versions, no fix yet
SUSE:Manager Server 4.3python-Jinja2
All versions, no fix yet
SUSE:Manager Server 4.3python3-Jinja2
All versions, no fix yet
openSUSE:Leap 16.0python-Jinja2
All versions, no fix yet

References