<?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 nodejs4</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE-SU-2018:0952-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2018-04-16T15:32:06Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2018-04-16T15:32:06Z</InitialReleaseDate>
    <CurrentReleaseDate>2018-04-16T15:32:06Z</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 nodejs4</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for nodejs4 fixes the following issues:

- Fix some node-gyp permissions

- New upstream maintenance 4.9.1:
  * Security fixes:
    + CVE-2018-7158: Fix for 'path' module regular expression denial of service (bsc#1087459)
    + CVE-2018-7159: Reject spaces in HTTP Content-Length header values (bsc#1087453)
  * Upgrade to OpenSSL 1.0.2o
  * deps: reject interior blanks in Content-Length
  * deps: upgrade http-parser to v2.8.0

- remove any old manpage files in %pre from before update-alternatives
  were used to manage symlinks to these manpages.

- Add Recommends and BuildRequire on python2 for npm. node-gyp
  requires this old version of python for now. This is only needed
  for binary modules.

- even on recent codestreams there is no binutils gold on s390
  only on s390x

- Enable CI tests in %check target
  </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>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">SUSE-SLE-Module-Web-Scripting-12-2018-649,SUSE-Storage-4-2018-649</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://www.suse.com/support/update/announcement/2018/suse-su-20180952-1/</URL>
      <Description>Link for SUSE-SU-2018:0952-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2018-April/003892.html</URL>
      <Description>E-Mail link for SUSE-SU-2018:0952-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1087453</URL>
      <Description>SUSE Bug 1087453</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1087459</URL>
      <Description>SUSE Bug 1087459</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-7158/</URL>
      <Description>SUSE CVE CVE-2018-7158 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-7159/</URL>
      <Description>SUSE CVE CVE-2018-7159 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="SUSE Enterprise Storage 4">
      <Branch Type="Product Name" Name="SUSE Enterprise Storage 4">
        <FullProductName ProductID="SUSE Enterprise Storage 4" CPE="cpe:/o:suse:ses:4">SUSE Enterprise Storage 4</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Module for Web and Scripting 12">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Web and Scripting 12">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 12" CPE="cpe:/o:suse:sle-module-web-scripting:12">SUSE Linux Enterprise Module for Web and Scripting 12</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="nodejs4-4.9.1-15.11.1">
      <FullProductName ProductID="nodejs4-4.9.1-15.11.1">nodejs4-4.9.1-15.11.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="nodejs4-devel-4.9.1-15.11.1">
      <FullProductName ProductID="nodejs4-devel-4.9.1-15.11.1">nodejs4-devel-4.9.1-15.11.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="nodejs4-docs-4.9.1-15.11.1">
      <FullProductName ProductID="nodejs4-docs-4.9.1-15.11.1">nodejs4-docs-4.9.1-15.11.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="npm4-4.9.1-15.11.1">
      <FullProductName ProductID="npm4-4.9.1-15.11.1">npm4-4.9.1-15.11.1</FullProductName>
    </Branch>
    <Relationship ProductReference="nodejs4-4.9.1-15.11.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Enterprise Storage 4">
      <FullProductName ProductID="SUSE Enterprise Storage 4:nodejs4-4.9.1-15.11.1">nodejs4-4.9.1-15.11.1 as a component of SUSE Enterprise Storage 4</FullProductName>
    </Relationship>
    <Relationship ProductReference="nodejs4-4.9.1-15.11.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 12">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-4.9.1-15.11.1">nodejs4-4.9.1-15.11.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 12</FullProductName>
    </Relationship>
    <Relationship ProductReference="nodejs4-devel-4.9.1-15.11.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 12">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-devel-4.9.1-15.11.1">nodejs4-devel-4.9.1-15.11.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 12</FullProductName>
    </Relationship>
    <Relationship ProductReference="nodejs4-docs-4.9.1-15.11.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 12">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-docs-4.9.1-15.11.1">nodejs4-docs-4.9.1-15.11.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 12</FullProductName>
    </Relationship>
    <Relationship ProductReference="npm4-4.9.1-15.11.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 12">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 12:npm4-4.9.1-15.11.1">npm4-4.9.1-15.11.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 12</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">The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.</Note>
    </Notes>
    <CVE>CVE-2018-7158</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Enterprise Storage 4:nodejs4-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-devel-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-docs-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:npm4-4.9.1-15.11.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">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20180952-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-7158.html</URL>
        <Description>CVE-2018-7158</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1087459</URL>
        <Description>SUSE Bug 1087459</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">The HTTP parser in all current versions of Node.js ignores spaces in the `Content-Length` header, allowing input such as `Content-Length: 1 2` to be interpreted as having a value of `12`. The HTTP specification does not allow for spaces in the `Content-Length` value and the Node.js HTTP parser has been brought into line on this particular difference. The security risk of this flaw to Node.js users is considered to be VERY LOW as it is difficult, and may be impossible, to craft an attack that makes use of this flaw in a way that could not already be achieved by supplying an incorrect value for `Content-Length`. Vulnerabilities may exist in user-code that make incorrect assumptions about the potential accuracy of this value compared to the actual length of the data supplied. Node.js users crafting lower-level HTTP utilities are advised to re-check the length of any input supplied after parsing is complete.</Note>
    </Notes>
    <CVE>CVE-2018-7159</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Enterprise Storage 4:nodejs4-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-devel-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:nodejs4-docs-4.9.1-15.11.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 12:npm4-4.9.1-15.11.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:P/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20180952-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-7159.html</URL>
        <Description>CVE-2018-7159</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1087453</URL>
        <Description>SUSE Bug 1087453</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
