CVE-2019-10906
python-jinja2: str.format_map allows sandbox escape
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · April 6, 2019
Updated · June 28, 2026
Description
A flaw was found in Jinja. Python string formatting could allow an attacker to escape the sandbox. The highest threat from this vulnerability is to data confidentiality and integrity and system availability.
Statement
Red Hat Virtualization Management Appliance includes python-jinja2 as a dependency of ovirt-engine-backend, which only uses it with controlled format strings that are not exploitable. Red Hat Satellite 6 will receive fixes through the underlying Red Hat Enterprise Linux, so it won't issue updates to its own affected package.
This issue does not affect versions of python-jinja2 as shipped with:
- Red Hat Enterprise Linux 6, and 7 as python2 does not support str.format_map.
- Red Hat Update Infrastructure as it does not use the Sandbox feature, nor does it allow untrusted jinja2 templates.
- Red Hat Ceph Storage 2, 3 and Red Hat Gluster Storage 3 as python2 does not support str.format_map.
- Red Hat OpenStack Platform 13 or 14 as python2 does not support str.format_map.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
If you cannot upgrade python-Jinja2, you can override the is_safe_attribute method on the sandbox and explicitly disallow the format_map method on string objects.
CVSS / CWE
CVSS 3.0 · 9CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE-138 · Improper Neutralization of Special Elements