Improper Input Validation Affecting rh-nodejs8-nodejs-devel package, versions <0:8.11.4-1.el7


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.13% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-RHNODEJS8NODEJSDEVEL-4739136
  • published26 Jul 2021
  • disclosed8 Mar 2018

Introduced: 8 Mar 2018

CVE-2018-7159  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade RHEL:7 rh-nodejs8-nodejs-devel to version 0:8.11.4-1.el7 or higher.
This issue was patched in RHSA-2018:2949.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rh-nodejs8-nodejs-devel package and not the rh-nodejs8-nodejs-devel package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Scores

version 3.1