Cloudanix VulnDB

CVE-2024-27982

Medium · 6.5

CVSS

6.5

EPSS

1.2%

Published

May 7, 2024

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in how certain web servers read request headers lets attackers slip extra commands inside a single request, potentially letting them reach parts of an application they should not.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Network Service
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Malformed headers with a leading space before Content-Length are mishandled by the Node.js HTTP parser, allowing a second request to be embedded and processed as part of the first request body.

Why it matters to the business

Applications built on the affected Node.js stack may allow attackers to bypass access controls, poison caches, or reach internal endpoints, increasing risk of data exposure or unauthorized actions in production services.

How an attack unfolds

An attacker crafts an HTTP request containing a space-prefixed Content-Length header whose body includes a complete second HTTP request; the server mis-parses the headers and forwards the smuggled request to the application or backend, bypassing front-end security controls.

How to fix it

Upgrade mongoose (Bitnami) to version 6.4.6 or later; ensure the underlying Node.js runtime receives the latest security patches that correct header parsing behavior.

How to confirm the fix worked

Confirm the installed mongoose version is 6.4.6 or newer; replay test requests containing a leading space before Content-Length and verify the server no longer processes a smuggled second request.

Typical attack path

  1. Scan for publicly reachable Node.js HTTP endpoints running vulnerable versions
  2. Send a request with a space before the Content-Length header and a smuggled request in the body
  3. Observe whether the backend processes the second request (e.g., via cache poisoning, internal API calls, or authentication bypass)
  4. Chain the smuggling primitive with further attacks such as SSRF or privilege escalation

How to detect it

Inspect web server and application logs for requests that contain a space immediately before the Content-Length header name; correlate with downstream logs showing unexpected second requests or cache anomalies.

What your security team should do

  • Immediately upgrade all instances of mongoose (Bitnami) to 6.4.6 or later
  • Review and harden HTTP request parsing middleware and reverse-proxy configurations
  • Monitor for unusual request patterns that could indicate smuggling attempts
  • Apply Node.js runtime updates as soon as they become available

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 nodejs 0 1:20.12.2-2.module_el8.9.0+3827+11b91f3e
AlmaLinux:8 nodejs 0 1:18.20.2-1.module_el8.9.0+3828+c9fa9644
AlmaLinux:8 nodejs-devel 0 1:20.12.2-2.module_el8.9.0+3827+11b91f3e
AlmaLinux:8 nodejs-devel 0 1:18.20.2-1.module_el8.9.0+3828+c9fa9644
AlmaLinux:8 nodejs-docs 0 1:20.12.2-2.module_el8.9.0+3827+11b91f3e
AlmaLinux:8 nodejs-docs 0 1:18.20.2-1.module_el8.9.0+3828+c9fa9644
AlmaLinux:8 nodejs-full-i18n 0 1:20.12.2-2.module_el8.9.0+3827+11b91f3e
AlmaLinux:8 nodejs-full-i18n 0 1:18.20.2-1.module_el8.9.0+3828+c9fa9644
AlmaLinux:8 nodejs-nodemon 0 3.0.1-1.module_el8.9.0+3731+490e3ce5
AlmaLinux:8 nodejs-nodemon 0 3.0.1-1.module_el8.8.0+3613+1ed8c91d
AlmaLinux:8 nodejs-packaging 0 2021.06-4.module_el8.9.0+3684+11b9e959
AlmaLinux:8 nodejs-packaging 0 2021.06-4.module_el8.7.0+3343+ea2b7901
AlmaLinux:8 nodejs-packaging-bundler 0 2021.06-4.module_el8.9.0+3684+11b9e959
AlmaLinux:8 nodejs-packaging-bundler 0 2021.06-4.module_el8.7.0+3343+ea2b7901
AlmaLinux:8 npm 0 1:10.5.0-1.20.12.2.2.module_el8.9.0+3827+11b91f3e
AlmaLinux:8 npm 0 1:10.5.0-1.18.20.2.1.module_el8.9.0+3828+c9fa9644
AlmaLinux:9 nodejs 0 1:18.20.2-2.module_el9.4.0+99+a01f7676
AlmaLinux:9 nodejs 0 1:20.12.2-2.module_el9.4.0+100+71fc9528
AlmaLinux:9 nodejs 0 1:16.20.2-8.el9_4
AlmaLinux:9 nodejs-devel 0 1:18.20.2-2.module_el9.4.0+99+a01f7676
AlmaLinux:9 nodejs-devel 0 1:20.12.2-2.module_el9.4.0+100+71fc9528
AlmaLinux:9 nodejs-docs 0 1:18.20.2-2.module_el9.4.0+99+a01f7676
AlmaLinux:9 nodejs-docs 0 1:20.12.2-2.module_el9.4.0+100+71fc9528
AlmaLinux:9 nodejs-docs 0 1:16.20.2-8.el9_4
AlmaLinux:9 nodejs-full-i18n 0 1:18.20.2-2.module_el9.4.0+99+a01f7676
AlmaLinux:9 nodejs-full-i18n 0 1:20.12.2-2.module_el9.4.0+100+71fc9528
AlmaLinux:9 nodejs-full-i18n 0 1:16.20.2-8.el9_4
AlmaLinux:9 nodejs-libs 0 1:16.20.2-8.el9_4
AlmaLinux:9 nodejs-nodemon 0 3.0.1-1.module_el9.2.0+36+853e48f5
AlmaLinux:9 nodejs-nodemon 0 3.0.1-1.module_el9.3.0+47+c33bc288
AlmaLinux:9 nodejs-packaging 0 2021.06-4.module_el9.1.0+13+d9a595ea
AlmaLinux:9 nodejs-packaging 0 2021.06-4.module_el9.3.0+88+29afeaa2
AlmaLinux:9 nodejs-packaging-bundler 0 2021.06-4.module_el9.1.0+13+d9a595ea
AlmaLinux:9 nodejs-packaging-bundler 0 2021.06-4.module_el9.3.0+88+29afeaa2
AlmaLinux:9 npm 0 1:10.5.0-1.18.20.2.2.module_el9.4.0+99+a01f7676
AlmaLinux:9 npm 0 1:10.5.0-1.20.12.2.2.module_el9.4.0+100+71fc9528
AlmaLinux:9 npm 0 1:8.19.4-1.16.20.2.8.el9_4
Alpine:v3.17 nodejs 0 18.20.1-r0
Alpine:v3.18 nodejs 0 18.20.1-r0
Alpine:v3.19 nodejs 0 20.12.1-r0
Alpine:v3.20 nodejs 0 20.12.1-r0
Alpine:v3.21 nodejs 0 20.12.1-r0
Alpine:v3.22 nodejs 0 20.12.1-r0
Bitnami node 0 18.20.1
Bitnami node 21.0.0 21.7.2
Bitnami node-min 0 18.20.1
Bitnami node-min 21.0.0 21.7.2
Chainguard nodejs-16 0 16.20.2-r16
Chainguard nodejs-16-doc 0 16.20.2-r15
Debian:11 nodejs 0 12.22.12~dfsg-1~deb11u5
Debian:12 nodejs 0 No fix
Debian:13 nodejs 0 18.20.1+dfsg-1
Debian:14 nodejs 0 18.20.1+dfsg-1
Mageia:9 nodejs 0 20.12.1-1.mga9
Red Hat:enterprise_linux:8::appstream nodejs 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-debuginfo 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs-debuginfo 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-debugsource 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs-debugsource 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-devel 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs-devel 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-docs 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs-docs 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-full-i18n 0 1:20.12.2-2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream nodejs-full-i18n 0 1:18.20.2-1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:8::appstream nodejs-nodemon 0 0:3.0.1-1.module+el8.9.0+20473+c4e3d824
Red Hat:enterprise_linux:8::appstream nodejs-nodemon 0 0:3.0.1-1.module+el8.9.0+21190+5ebd2c33
Red Hat:enterprise_linux:8::appstream nodejs-packaging 0 0:2021.06-4.module+el8.9.0+19519+e25b965a
Red Hat:enterprise_linux:8::appstream nodejs-packaging 0 0:2021.06-4.module+el8.9.0+21190+5ebd2c33
Red Hat:enterprise_linux:8::appstream nodejs-packaging-bundler 0 0:2021.06-4.module+el8.9.0+19519+e25b965a
Red Hat:enterprise_linux:8::appstream nodejs-packaging-bundler 0 0:2021.06-4.module+el8.9.0+21190+5ebd2c33
Red Hat:enterprise_linux:8::appstream npm 0 1:10.5.0-1.20.12.2.2.module+el8.9.0+21743+0b3f1be2
Red Hat:enterprise_linux:8::appstream npm 0 1:10.5.0-1.18.20.2.1.module+el8.9.0+21767+537f34ee
Red Hat:enterprise_linux:9::appstream nodejs 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-debuginfo 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs-debuginfo 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs-debuginfo 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-debugsource 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs-debugsource 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs-debugsource 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-devel 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs-devel 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs-docs 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs-docs 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs-docs 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-full-i18n 0 1:18.20.2-2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream nodejs-full-i18n 0 1:20.12.2-2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream nodejs-full-i18n 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-libs 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-libs-debuginfo 0 1:16.20.2-8.el9_4
Red Hat:enterprise_linux:9::appstream nodejs-nodemon 0 0:3.0.1-1.module+el9.3.0+19762+d716bf3b
Red Hat:enterprise_linux:9::appstream nodejs-nodemon 0 0:3.0.1-1.module+el9.3.0.z+20478+84a9f781
Red Hat:enterprise_linux:9::appstream nodejs-packaging 0 0:2021.06-4.module+el9.1.0+15718+e52ec601
Red Hat:enterprise_linux:9::appstream nodejs-packaging 0 0:2021.06-4.module+el9.3.0+19518+63aad52d
Red Hat:enterprise_linux:9::appstream nodejs-packaging-bundler 0 0:2021.06-4.module+el9.1.0+15718+e52ec601
Red Hat:enterprise_linux:9::appstream nodejs-packaging-bundler 0 0:2021.06-4.module+el9.3.0+19518+63aad52d
Red Hat:enterprise_linux:9::appstream npm 0 1:10.5.0-1.18.20.2.2.module+el9.4.0+21742+692df1ea
Red Hat:enterprise_linux:9::appstream npm 0 1:10.5.0-1.20.12.2.2.module+el9.4.0+21731+46b5b8a7
Red Hat:enterprise_linux:9::appstream npm 0 1:8.19.4-1.16.20.2.8.el9_4
Red Hat:rhel_eus:9.0::appstream nodejs 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-debuginfo 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-debugsource 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-docs 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-full-i18n 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-libs 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream nodejs-libs-debuginfo 0 1:16.20.2-6.el9_0
Red Hat:rhel_eus:9.0::appstream npm 0 1:8.19.4-1.16.20.2.6.el9_0
Red Hat:rhel_eus:9.2::appstream nodejs 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-debuginfo 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-debugsource 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-docs 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-full-i18n 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-libs 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream nodejs-libs-debuginfo 0 1:16.20.2-6.el9_2.3
Red Hat:rhel_eus:9.2::appstream npm 0 1:8.19.4-1.16.20.2.6.el9_2.3
Rocky Linux:8 nodejs 0 1:20.12.2-2.module+el8.9.0+1804+2708cc21
Rocky Linux:8 nodejs 0 1:18.20.2-1.module+el8.9.0+1803+9ac8b495
Rocky Linux:8 nodejs-nodemon 0 0:3.0.1-1.module+el8.8.0+1459+02651ab6
Rocky Linux:8 nodejs-packaging 0 0:2021.06-4.module+el8.7.0+1072+5b168780
Rocky Linux:9 nodejs 0 1:20.12.2-2.module+el9.4.0+20281+a6090b05
Rocky Linux:9 nodejs 0 1:16.20.2-8.el9_4
Rocky Linux:9 nodejs-nodemon 0 0:3.0.1-1.module+el9.2.0+15226+de336927
Rocky Linux:9 nodejs-nodemon 0 0:3.0.1-1.module+el9.6.0+32322+a8b1fd01
Rocky Linux:9 nodejs-nodemon 0 0:3.0.1-1.module+el9.4.0+20268+ab82f8a5
Rocky Linux:9 nodejs-nodemon 0 0:3.0.1-1.module+el9.5.0+31770+0da7192d
Rocky Linux:9 nodejs-packaging 0 0:2021.06-4.module+el9.2.0+15226+de336927
Rocky Linux:9 nodejs-packaging 0 0:2021.06-4.module+el9.5.0+31770+0da7192d
Rocky Linux:9 nodejs-packaging 0 0:2021.06-4.module+el9.4.0+20268+ab82f8a5
SUSE:Enterprise Storage 7.1 nodejs12 0 12.22.12-150200.4.59.1
SUSE:Enterprise Storage 7.1 nodejs14 0 14.21.3-150200.15.58.1
SUSE:Enterprise Storage 7.1 nodejs16 0 16.20.2-150300.7.36.2
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS nodejs16 0 16.20.2-150300.7.36.2
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS nodejs16 0 16.20.2-150400.3.33.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS nodejs18 0 18.20.1-150400.9.21.3
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS nodejs16 0 16.20.2-150400.3.33.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS nodejs18 0 18.20.1-150400.9.21.3
SUSE:Linux Enterprise Module for Web and Scripting 12 nodejs16 0 16.20.2-8.42.1
SUSE:Linux Enterprise Module for Web and Scripting 12 nodejs18 0 18.20.1-8.21.1
SUSE:Linux Enterprise Module for Web and Scripting 15 SP5 nodejs18 0 18.20.1-150400.9.21.3
SUSE:Linux Enterprise Module for Web and Scripting 15 SP5 nodejs20 0 20.12.1-150500.11.9.2
SUSE:Linux Enterprise Server 15 SP2-LTSS nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise Server 15 SP2-LTSS nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise Server 15 SP3-LTSS nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise Server 15 SP3-LTSS nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise Server 15 SP3-LTSS nodejs16 0 16.20.2-150300.7.36.2
SUSE:Linux Enterprise Server 15 SP4-LTSS nodejs16 0 16.20.2-150400.3.33.1
SUSE:Linux Enterprise Server 15 SP4-LTSS nodejs18 0 18.20.1-150400.9.21.3
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 nodejs12 0 12.22.12-150200.4.59.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 nodejs14 0 14.21.3-150200.15.58.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 nodejs16 0 16.20.2-150300.7.36.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 nodejs16 0 16.20.2-150400.3.33.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 nodejs18 0 18.20.1-150400.9.21.3
SUSE:Manager Server 4.3 nodejs16 0 16.20.2-150400.3.33.1
SUSE:Manager Server 4.3 nodejs18 0 18.20.1-150400.9.21.3
Ubuntu:20.04:LTS nodejs 0 No fix
Ubuntu:22.04:LTS nodejs 0 No fix
Ubuntu:24.04:LTS nodejs 0 No fix
Ubuntu:24.10 nodejs 0 No fix
Ubuntu:Pro:14.04:LTS nodejs 0 No fix
Ubuntu:Pro:16.04:LTS nodejs 0 No fix
Ubuntu:Pro:18.04:LTS nodejs 0 No fix
Ubuntu:Pro:22.04:LTS nodejs 0 No fix
Wolfi nodejs-16 0 16.20.2-r16
Wolfi nodejs-16-doc 0 16.20.2-r15
openSUSE:Leap 15.5 nodejs18 0 18.20.1-150400.9.21.3
openSUSE:Leap 15.5 nodejs20 0 20.12.1-150500.11.9.2
openSUSE:Tumbleweed nodejs20 0 20.12.1-1.1
openSUSE:Tumbleweed nodejs21 0 21.7.2-1.1

Related vulnerabilities