Incorrect Calculation of Buffer Size Affecting nodejs:12/npm package, versions <1:6.14.6-1.12.18.4.2.module+el8.2.0+8361+192e434e


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.05% (21st 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 IDSNYK-RHEL8-NODEJS-3830340
  • published26 Jul 2021
  • disclosed15 Sept 2020

Introduced: 15 Sep 2020

CVE-2020-8252  (opens in a new tab)
CWE-131  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade RHEL:8 nodejs:12/npm to version 1:6.14.6-1.12.18.4.2.module+el8.2.0+8361+192e434e or higher.
This issue was patched in RHSA-2020:4272.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs:12/npm package and not the nodejs:12/npm package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

The implementation of realpath in libuv < 10.22.1, < 12.18.4, and < 14.9.0 used within Node.js incorrectly determined the buffer size which can result in a buffer overflow if the resolved path is longer than 256 bytes.

CVSS Scores

version 3.1