Directory Traversal Affecting nodejs-full-i18n package, versions <1:20.8.1-1.module+el8.9.0+20473+c4e3d824


Severity

Recommended
high

Based on CentOS 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 Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS8-NODEJSFULLI18N-5971642
  • published17 Oct 2023
  • disclosed13 Oct 2023

Introduced: 13 Oct 2023

CVE-2023-39332  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Centos:8 nodejs-full-i18n to version 1:20.8.1-1.module+el8.9.0+20473+c4e3d824 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-full-i18n package and not the nodejs-full-i18n package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

Various node:fs functions allow specifying paths as either strings or Uint8Array objects. In Node.js environments, the Buffer class extends the Uint8Array class. Node.js prevents path traversal through strings (see CVE-2023-30584) and Buffer objects (see CVE-2023-32004), but not through non-Buffer Uint8Array objects.

This is distinct from CVE-2023-32004 which only referred to Buffer objects. However, the vulnerability follows the same pattern using Uint8Array instead of Buffer.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

CVSS Scores

version 3.1