<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2025-0102</id>
    <title>An update for python-jinja2 is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2025-02-27 13:08:34"/>
    <updated date="2025-02-27 13:08:34"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-56326" id="CVE-2024-56326" title="CVE-2024-56326 Base Score: 7.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format 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_x27;s sandbox does catch calls to str.format and ensures they don_x27;t escape the sandbox. However, it_x27;s possible to store a reference to a malicious string_x27;s format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5. (CVE-2024-56326)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="python-jinja2">
        <name>HCE 2.0</name>
        <package arch="noarch" name="python3-jinja2" version="3.0.3" release="1.r4.hce2">
          <filename>python3-jinja2-3.0.3-1.r4.hce2.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="python-jinja2-help" version="3.0.3" release="1.r4.hce2">
          <filename>python-jinja2-help-3.0.3-1.r4.hce2.noarch.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
