nodejs:18 security update
エラータID: AXSA:2024-8154:01
Node.js is a software development platform for building fast and scalable network applications in the JavaScript programming language.
Security Fix(es):
* nodejs: CONTINUATION frames DoS (CVE-2024-27983)
* nodejs: using the fetch() function to retrieve content from an untrusted URL leads to denial of service (CVE-2024-22025)
* nodejs: HTTP Request Smuggling via Content Length Obfuscation (CVE-2024-27982)
* nghttp2: CONTINUATION frames DoS (CVE-2024-28182)
* c-ares: Out of bounds read in ares__read_line() (CVE-2024-25629)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
CVE-2024-22025
A vulnerability in Node.js has been identified, allowing for a Denial of Service (DoS) attack through resource exhaustion when using the fetch() function to retrieve content from an untrusted URL. The vulnerability stems from the fact that the fetch() function in Node.js always decodes Brotli, making it possible for an attacker to cause resource exhaustion when fetching content from an untrusted URL. An attacker controlling the URL passed into fetch() can exploit this vulnerability to exhaust memory, potentially leading to process termination, depending on the system configuration.
CVE-2024-25629
c-ares is a C library for asynchronous DNS requests. `ares__read_line()` is used to parse local configuration files such as `/etc/resolv.conf`, `/etc/nsswitch.conf`, the `HOSTALIASES` file, and if using a c-ares version prior to 1.27.0, the `/etc/hosts` file. If any of these configuration files has an embedded `NULL` character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.
CVE-2024-27982
The team has identified a critical vulnerability in the http server of the most recent version of Node, where malformed headers can lead to HTTP request smuggling. Specifically, if a space is placed before a content-length header, it is not interpreted correctly, enabling attackers to smuggle in a second request within the body of the first.
CVE-2024-27983
An attacker can make the Node.js HTTP/2 server completely unavailable by sending a small amount of HTTP/2 frames packets with a few HTTP/2 frames inside. It is possible to leave some data in nghttp2 memory after reset when headers with HTTP/2 CONTINUATION frame are sent to the server and then a TCP connection is abruptly closed by the client triggering the Http2Session destructor while header frames are still being processed (and stored in memory) causing a race condition.
CVE-2024-28182
nghttp2 is an implementation of the Hypertext Transfer Protocol version 2 in C. The nghttp2 library prior to version 1.61.0 keeps reading the unbounded number of HTTP/2 CONTINUATION frames even after a stream is reset to keep HPACK context in sync. This causes excessive CPU usage to decode HPACK stream. nghttp2 v1.61.0 mitigates this vulnerability by limiting the number of CONTINUATION frames it accepts per stream. There is no workaround for this vulnerability.
Modularity name: "nodejs"
Stream name: "18"
Update packages.
A vulnerability in Node.js has been identified, allowing for a Denial of Service (DoS) attack through resource exhaustion when using the fetch() function to retrieve content from an untrusted URL. The vulnerability stems from the fact that the fetch() function in Node.js always decodes Brotli, making it possible for an attacker to cause resource exhaustion when fetching content from an untrusted URL. An attacker controlling the URL passed into fetch() can exploit this vulnerability to exhaust memory, potentially leading to process termination, depending on the system configuration.
c-ares is a C library for asynchronous DNS requests. `ares__read_line()` is used to parse local configuration files such as `/etc/resolv.conf`, `/etc/nsswitch.conf`, the `HOSTALIASES` file, and if using a c-ares version prior to 1.27.0, the `/etc/hosts` file. If any of these configuration files has an embedded `NULL` character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.
The team has identified a critical vulnerability in the http server of the most recent version of Node, where malformed headers can lead to HTTP request smuggling. Specifically, if a space is placed before a content-length header, it is not interpreted correctly, enabling attackers to smuggle in a second request within the body of the first.
An attacker can make the Node.js HTTP/2 server completely unavailable by sending a small amount of HTTP/2 frames packets with a few HTTP/2 frames inside. It is possible to leave some data in nghttp2 memory after reset when headers with HTTP/2 CONTINUATION frame are sent to the server and then a TCP connection is abruptly closed by the client triggering the Http2Session destructor while header frames are still being processed (and stored in memory) causing a race condition.
nghttp2 is an implementation of the Hypertext Transfer Protocol version 2 in C. The nghttp2 library prior to version 1.61.0 keeps reading the unbounded number of HTTP/2 CONTINUATION frames even after a stream is reset to keep HPACK context in sync. This causes excessive CPU usage to decode HPACK stream. nghttp2 v1.61.0 mitigates this vulnerability by limiting the number of CONTINUATION frames it accepts per stream. There is no workaround for this vulnerability.
N/A
SRPMS
- nodejs-nodemon-3.0.1-1.module+el9+1039+adba9f38.src.rpm
MD5: 89b3f43f47220feddba0e95b0f722dc6
SHA-256: 4e100ae2a7689ab0dbb90d9e1a848e2681ea32376eb2bc207b551c00a467381a
Size: 339.27 kB - nodejs-packaging-2021.06-4.module+el9+1039+adba9f38.src.rpm
MD5: 26866273634a9c8fa3d0fca6d345bba3
SHA-256: 49287235954132e753fec01aa380bd8306ab5bdc71027284e259cc27e6ef1eb3
Size: 26.54 kB - nodejs-18.20.2-2.module+el9+1039+adba9f38.src.rpm
MD5: ea8cff9341e57af62925968321e2ccba
SHA-256: 7e3864818e06028908ddaebdcd2277528387b8a557eb2b4da965b7938cc187ce
Size: 92.45 MB
Asianux Server 9 for x86_64
- nodejs-18.20.2-2.module+el9+1039+adba9f38.x86_64.rpm
MD5: 2c062081b081efd1d08927bd35954106
SHA-256: 021fcc1530c8d8ef92993f1e8ff998fa0bf7e673bc588ed4e0174958544d5d86
Size: 12.62 MB - nodejs-debugsource-18.20.2-2.module+el9+1039+adba9f38.x86_64.rpm
MD5: e5025c2a5c4abc24314f71578f248f5c
SHA-256: 9afb74032d2e8ee2d5b14f72aa44b5b5f725b0a9098c2485b94e0fb52c9de2bb
Size: 11.59 MB - nodejs-devel-18.20.2-2.module+el9+1039+adba9f38.x86_64.rpm
MD5: bcb29946257c2567fda4bd7751c7e72e
SHA-256: f2e4d6d13756a459f7d5bc0a268a4419ecb2415bff6be272885c1292ca7ab158
Size: 183.67 kB - nodejs-docs-18.20.2-2.module+el9+1039+adba9f38.noarch.rpm
MD5: b5d5d71e1048e35ab52f350b3820c819
SHA-256: 68d88a2ddb00d34523c6a97c9cc378382e269f7069ecedca8ec1529476fddd2a
Size: 7.76 MB - nodejs-full-i18n-18.20.2-2.module+el9+1039+adba9f38.x86_64.rpm
MD5: 908f39abac5c740677d557f848ebc195
SHA-256: 58f4cdb324caad75f37a37ff0a9b1c47c343ed5a576ffcb7e4726aaeaa96163f
Size: 8.43 MB - nodejs-nodemon-3.0.1-1.module+el9+1039+adba9f38.noarch.rpm
MD5: e180bb55da3c112f16d82fdb4449183a
SHA-256: 11c3c0169c9912c88ed1e45da4cd50251aefbe3a762842397c572fc11f160f18
Size: 268.41 kB - nodejs-packaging-2021.06-4.module+el9+1039+adba9f38.noarch.rpm
MD5: 28ec03c23c1825f3ce97186145de6eed
SHA-256: ab38f26c8c2c07c8c3a18cacd877451d7ae25ef22ca0cb38161fc4632f6b1c31
Size: 19.92 kB - nodejs-packaging-bundler-2021.06-4.module+el9+1039+adba9f38.noarch.rpm
MD5: 28a67109357f813d42086e812383a4c4
SHA-256: e0076cf0111935d94dda5758391a7161d66a6034ce5a4ff7a2bf86564187c2e6
Size: 9.76 kB - npm-10.5.0-1.18.20.2.2.module+el9+1039+adba9f38.x86_64.rpm
MD5: 3f889a7cd603084dda1f30a5249cc971
SHA-256: b5f235fa96e2f92f8a2e52e00a35f42b1db3a5fe07b4d4d3d7de61b3d0bb9f42
Size: 1.89 MB