ADVISORIES

Amazon Linux Security Advisory

ALAS2023-2024-768

Amazon Linux 2023 - ALAS2023-2024-768: Medium priority package update for nodejs20

Details

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-36137: A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used.

Node.js Permission Model do not operate on file descriptors, however, operations such as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the owner and permissions of a file.

CVE-2024-28863: node-tar is a Tar for Node.js. node-tar prior to version 6.2.1 has no limit on the number of sub-folders created in the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running node-tar and even crash the Node.js client within few seconds of running it using a path with too many sub-folders inside. Version 6.2.1 fixes this issue by preventing extraction in excessively deep sub-folders.

CVE-2024-22020: A security flaw in Node.js allows a bypass of network import restrictions. By embedding non-network imports in data URLs, an attacker can execute arbitrary code, compromising system security. Verified on various platforms, the vulnerability is mitigated by forbidding data URLs in network imports. Exploiting this flaw can violate network import security, posing a risk to developers and servers.

CVE-2024-22018: A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used. This flaw arises from an inadequate permission model that fails to restrict file stats through the fs.lstat API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2023nodejs20
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-debuginfo
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-debugsource
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-devel
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-docs
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-full-i18n
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-libs
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-libs-debuginfo
All versions before 1:20.18.0-1.amzn2023.0.2 (fixed in 1:20.18.0-1.amzn2023.0.2)
Amazon Linux:2023nodejs20-npm
All versions before 1:10.8.2-1.20.18.0.1.amzn2023.0.2 (fixed in 1:10.8.2-1.20.18.0.1.amzn2023.0.2)
Amazon Linux:2023v8-11.3-devel
All versions before 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2 (fixed in 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2)

References