<?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 salt</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2017:2822-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2017-10-20T18:05:17Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2017-10-20T18:05:17Z</InitialReleaseDate>
    <CurrentReleaseDate>2017-10-20T18:05:17Z</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 salt</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">Salt was updated to 2017.7.2 and also to fix various bugs and security issues.

See the following resources for the full changelog:
https://docs.saltstack.com/en/develop/topics/releases/2017.7.2.html
https://docs.saltstack.com/en/develop/topics/releases/2017.7.1.html
https://docs.saltstack.com/en/develop/topics/releases/2017.7.0.html

Security issues fixed:

- CVE-2017-14695: A directory traversal during minion id validation was fixed. (boo#1062462)
- CVE-2017-14696: A remote denial of service attack with a specially crafted authentication request was fixed. (boo#1062464)
- CVE-2017-12791: crafted minion ID could lead directory traversal on the Salt-master (boo#1053955)

Non security issues fixed:

- Add possibility to generate _version.py at the build time for
  raw builds: https://github.com/saltstack/salt/pull/43955
- Fix salt target-type field returns 'String' for existing 
  jids but an empty 'Array' for non existing jids. (issue #1711)
- Fixed minion resource exhaustion when many functions are being
  executed in parallel (boo#1059758)
- Remove 'TasksTask' attribute from salt-master.service in older
  versions of systemd (boo#985112)
- Provide custom SUSE salt-master.service file.
- Fix wrong version reported by Salt (boo#1061407)
- list_pkgs: add parameter for returned attribute selection (boo#1052264)
- Adding the leftover for zypper and yum list_pkgs functionality.
- Use $HOME to get the user home directory instead using '~' char (boo#1042749)
- fix ownership for whole master cache directory (boo#1035914)
- fix setting the language on SUSE systems (boo#1038855)
- wrong os_family grains on SUSE - fix unittests (boo#1038855)
- speed-up cherrypy by removing sleep call
- Disable 3rd party runtime packages to be explicitly recommended.
  (boo#1040886)
- fix format error (boo#1043111)
- Add a salt-minion watchdog for RHEL6 and SLES11 systems (sysV)
  to restart salt-minion in case of crashes during upgrade.
- Add procps as dependency.
- Bugfix: jobs scheduled to run at a future time stay
  pending for Salt minions (boo#1036125)
- Wrong os_family grains on SUSE - fix unittests. (boo#1038855)
- Fix setting the language on SUSE systems. (boo#1038855)
- Bugfix: unable to use hostname for minion ID as '127'. (upstream)
- Bugfix: remove sleep call in CheppryPy API handler. (upstream)
- Fix core grains constants for timezone. (boo#1032931)
- Prevents zero length error on Python 2.6.
- Fixes zypper test error after backporting.
- Refactoring on Zypper and Yum execution and state modules to allow
  installation of patches/errata.
- Allows to set 'timeout' and 'gather_job_timeout' via kwargs.
- Add missing bootstrap script for Salt Cloud. (boo#1032452)
- raet protocol is no longer supported. (boo#1020831)
- Fix: add missing /var/cache/salt/cloud directory. (boo#1032213)
- Cleanup salt user environment preparation. (boo#1027722)
- Fix: race condition on cache directory creation.
- Fix: /var/log/salt/minion fails logrotate. (boo#1030009)
- Fix: Result of master_tops extension is mutually overwritten.
  (boo#1030073)
- Allows to set custom timeouts for 'manage.up' and 'manage.status'.
- Keep fix for migrating salt home directory. (boo#1022562)
- Fix salt-minion update on RHEL. (boo#1022841)
- Prevents 'OSError' exception in case certain job cache path 
  doesn't exist. (boo#1023535)    
</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>https://lists.opensuse.org/opensuse-updates/2017-10/msg00073.html</URL>
      <Description>E-Mail link for openSUSE-SU-2017:2822-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 Leap 42.2">
      <Branch Type="Product Name" Name="openSUSE Leap 42.2">
        <FullProductName ProductID="openSUSE Leap 42.2">openSUSE Leap 42.2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="salt-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-2017.7.2-5.3.1">salt-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-api-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-api-2017.7.2-5.3.1">salt-api-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-bash-completion-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-bash-completion-2017.7.2-5.3.1">salt-bash-completion-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-cloud-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-cloud-2017.7.2-5.3.1">salt-cloud-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-doc-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-doc-2017.7.2-5.3.1">salt-doc-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-fish-completion-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-fish-completion-2017.7.2-5.3.1">salt-fish-completion-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-master-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-master-2017.7.2-5.3.1">salt-master-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-minion-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-minion-2017.7.2-5.3.1">salt-minion-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-proxy-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-proxy-2017.7.2-5.3.1">salt-proxy-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-ssh-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-ssh-2017.7.2-5.3.1">salt-ssh-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-syndic-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-syndic-2017.7.2-5.3.1">salt-syndic-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="salt-zsh-completion-2017.7.2-5.3.1">
      <FullProductName ProductID="salt-zsh-completion-2017.7.2-5.3.1">salt-zsh-completion-2017.7.2-5.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="salt-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-2017.7.2-5.3.1">salt-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-api-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-api-2017.7.2-5.3.1">salt-api-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-bash-completion-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-bash-completion-2017.7.2-5.3.1">salt-bash-completion-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-cloud-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-cloud-2017.7.2-5.3.1">salt-cloud-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-doc-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-doc-2017.7.2-5.3.1">salt-doc-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-fish-completion-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-fish-completion-2017.7.2-5.3.1">salt-fish-completion-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-master-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-master-2017.7.2-5.3.1">salt-master-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-minion-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-minion-2017.7.2-5.3.1">salt-minion-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-proxy-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-proxy-2017.7.2-5.3.1">salt-proxy-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-ssh-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-ssh-2017.7.2-5.3.1">salt-ssh-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-syndic-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-syndic-2017.7.2-5.3.1">salt-syndic-2017.7.2-5.3.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="salt-zsh-completion-2017.7.2-5.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:salt-zsh-completion-2017.7.2-5.3.1">salt-zsh-completion-2017.7.2-5.3.1 as a component of openSUSE Leap 42.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">Directory traversal vulnerability in minion id validation in SaltStack Salt before 2016.11.7 and 2017.7.x before 2017.7.1 allows remote minions with incorrect credentials to authenticate to a master via a crafted minion ID.</Note>
    </Notes>
    <CVE>CVE-2017-12791</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:salt-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-api-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-bash-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-cloud-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-doc-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-fish-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-master-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-minion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-proxy-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-ssh-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-syndic-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-zsh-completion-2017.7.2-5.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>4</BaseScore>
        <Vector>AV:N/AC:L/Au:S/C:P/I:N/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-10/msg00073.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-12791.html</URL>
        <Description>CVE-2017-12791</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1053955</URL>
        <Description>SUSE Bug 1053955</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1062462</URL>
        <Description>SUSE Bug 1062462</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Directory traversal vulnerability in minion id validation in SaltStack Salt before 2016.3.8, 2016.11.x before 2016.11.8, and 2017.7.x before 2017.7.2 allows remote minions with incorrect credentials to authenticate to a master via a crafted minion ID.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-12791.</Note>
    </Notes>
    <CVE>CVE-2017-14695</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:salt-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-api-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-bash-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-cloud-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-doc-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-fish-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-master-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-minion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-proxy-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-ssh-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-syndic-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-zsh-completion-2017.7.2-5.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>5</BaseScore>
        <Vector>AV:N/AC:L/Au:N/C:P/I:N/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-10/msg00073.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-14695.html</URL>
        <Description>CVE-2017-14695</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1053955</URL>
        <Description>SUSE Bug 1053955</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1062462</URL>
        <Description>SUSE Bug 1062462</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">SaltStack Salt before 2016.3.8, 2016.11.x before 2016.11.8, and 2017.7.x before 2017.7.2 allows remote attackers to cause a denial of service via a crafted authentication request.</Note>
    </Notes>
    <CVE>CVE-2017-14696</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:salt-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-api-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-bash-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-cloud-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-doc-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-fish-completion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-master-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-minion-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-proxy-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-ssh-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-syndic-2017.7.2-5.3.1</ProductID>
        <ProductID>openSUSE Leap 42.2:salt-zsh-completion-2017.7.2-5.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>5</BaseScore>
        <Vector>AV:N/AC:L/Au:N/C:N/I:N/A:P</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-10/msg00073.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2017-14696.html</URL>
        <Description>CVE-2017-14696</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1053955</URL>
        <Description>SUSE Bug 1053955</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1062464</URL>
        <Description>SUSE Bug 1062464</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
