<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for python-Jinja2</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2016:2465-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2016-10-06T09:48:55Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2016-10-06T09:48:55Z</InitialReleaseDate>
    <CurrentReleaseDate>2016-10-06T09:48:55Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for python-Jinja2</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
This update for python-Jinja2 fixes the following issues:

Update to version 2.8:
- Added `target` parameter to urlize function.
- Added support for `followsymlinks` to the file system loader.
- The truncate filter now counts the length.
- Added equalto filter that helps with select filters.
- Changed cache keys to use absolute file names if available
  instead of load names.
- Fixed loop length calculation for some iterators.
- Changed how Jinja2 enforces strings to be native strings in
    Python 2 to work when people break their default encoding.
- Added :func:`make_logging_undefined` which returns an undefined
    object that logs failures into a logger.
- If unmarshalling of cached data fails the template will be
    reloaded now.
- Implemented a block ``set`` tag.
- Default cache size was incrased to 400 from a low 50.
- Fixed ``is number`` test to accept long integers in all Python versions.
- Changed ``is number`` to accept Decimal as a number.
- Added a check for default arguments followed by non-default arguments. This
    change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The
    previous behavior for this code was broken anyway (resulting in the default
    value being applied to `y`).
- Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and
    ``jinja2.runtime.Context`` by adding two new attributes to the environment
    (`code_generator_class` and `context_class`) (pull request ``#404``).
- added support for context/environment/evalctx decorator functions on
    the finalize callback of the environment.
- escape query strings for urlencode properly.  Previously slashes were not
    escaped in that place.
- Add 'base' parameter to 'int' filter.

- Update to 2.7.3 (boo#858239, CVE-2014-0012)
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00010.html</URL>
      <Description>E-Mail link for openSUSE-SU-2016:2465-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE 13.2">
      <Branch Type="Product Name" Name="openSUSE 13.2">
        <FullProductName ProductID="openSUSE 13.2">openSUSE 13.2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="python-Jinja2-2.8-3.3.1">
      <FullProductName ProductID="python-Jinja2-2.8-3.3.1">python-Jinja2-2.8-3.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-Jinja2-emacs-2.8-3.3.1">
      <FullProductName ProductID="python-Jinja2-emacs-2.8-3.3.1">python-Jinja2-emacs-2.8-3.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-Jinja2-vim-2.8-3.3.1">
      <FullProductName ProductID="python-Jinja2-vim-2.8-3.3.1">python-Jinja2-vim-2.8-3.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="python-Jinja2-2.8-3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE 13.2">
      <FullProductName ProductID="openSUSE 13.2:python-Jinja2-2.8-3.3.1">python-Jinja2-2.8-3.3.1 as a component of openSUSE 13.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-Jinja2-emacs-2.8-3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE 13.2">
      <FullProductName ProductID="openSUSE 13.2:python-Jinja2-emacs-2.8-3.3.1">python-Jinja2-emacs-2.8-3.3.1 as a component of openSUSE 13.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-Jinja2-vim-2.8-3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE 13.2">
      <FullProductName ProductID="openSUSE 13.2:python-Jinja2-vim-2.8-3.3.1">python-Jinja2-vim-2.8-3.3.1 as a component of openSUSE 13.2</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">FileSystemBytecodeCache in Jinja2 2.7.2 does not properly create temporary directories, which allows local users to gain privileges by pre-creating a temporary directory with a user's uid.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-1402.</Note>
    </Notes>
    <CVE>CVE-2014-0012</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE 13.2:python-Jinja2-2.8-3.3.1</ProductID>
        <ProductID>openSUSE 13.2:python-Jinja2-emacs-2.8-3.3.1</ProductID>
        <ProductID>openSUSE 13.2:python-Jinja2-vim-2.8-3.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00010.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-0012.html</URL>
        <Description>CVE-2014-0012</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/858239</URL>
        <Description>SUSE Bug 858239</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
