PT-2019-12084 · Pallets+6 · Jinja+6
Brian Welch
·
Published
2019-04-06
·
Updated
2024-06-15
·
CVE-2019-10906
CVSS v3.1
9.0
Critical
| Vector | AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Pallets Jinja versions prior to 2.10.1
Description
The issue allows a sandbox escape through the
str.format map method. This method could be used to bypass the sandbox, which is designed to restrict the evaluation of untrusted, user-provided templates. The problem arises due to the way string formatting works in Python.Recommendations
For versions prior to 2.10.1, update to version 2.10.1 or later to resolve the issue.
As a temporary workaround, consider overriding the
is safe attribute method on the sandbox and explicitly disallow the format map method on string objects.Fix
Protection Mechanism Failure
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Jinja
Red Hat
Rocky Linux
Suse
Ubuntu