vulnerability

Rocky Linux: CVE-2025-27516: python-jinja2 (Multiple Advisories)

Severity
7
CVSS
(AV:L/AC:L/Au:S/C:C/I:C/A:C)
Published
Jul 29, 2025
Added
Jul 31, 2025
Modified
Oct 6, 2025

Description

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.

Solutions

rocky-upgrade-fence-agents-aliyunrocky-upgrade-fence-agents-allrocky-upgrade-fence-agents-awsrocky-upgrade-fence-agents-azure-armrocky-upgrade-fence-agents-computerocky-upgrade-fence-agents-gcerocky-upgrade-fence-agents-kdumprocky-upgrade-fence-agents-kdump-debuginforocky-upgrade-fence-agents-kubevirtrocky-upgrade-fence-agents-kubevirt-debuginforocky-upgrade-fence-agents-openstackrocky-upgrade-fence-agents-redfishrocky-upgrade-fence-agents-zvmrocky-upgrade-fence-virtrocky-upgrade-fence-virt-debuginforocky-upgrade-fence-virtdrocky-upgrade-fence-virtd-cpgrocky-upgrade-fence-virtd-cpg-debuginforocky-upgrade-fence-virtd-debuginforocky-upgrade-fence-virtd-libvirtrocky-upgrade-fence-virtd-libvirt-debuginforocky-upgrade-fence-virtd-multicastrocky-upgrade-fence-virtd-multicast-debuginforocky-upgrade-fence-virtd-serialrocky-upgrade-fence-virtd-serial-debuginforocky-upgrade-fence-virtd-tcprocky-upgrade-fence-virtd-tcp-debuginforocky-upgrade-ha-cloud-supportrocky-upgrade-ha-cloud-support-debuginfo
Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.