CVE Vulnerabilities

CVE-2022-32215

Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Published: Jul 14, 2022 | Modified: Nov 07, 2023
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Ubuntu
MEDIUM

The llhttp parser <v14.20.1, <v16.17.1 and <v18.9.1 in the http module in Node.js does not correctly handle multi-line Transfer-Encoding headers. This can lead to HTTP Request Smuggling (HRS).

Weakness

The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.

Affected Software

Name Vendor Start Version End Version
Llhttp Llhttp 14.0.0 (including) 14.20.1 (excluding)
Llhttp Llhttp 16.0.0 (including) 16.17.1 (excluding)
Llhttp Llhttp 18.0.0 (including) 18.9.1 (excluding)
Node.js Nodejs 14.0.0 (including) 14.14.0 (including)
Node.js Nodejs 14.15.0 (including) 14.20.0 (excluding)
Node.js Nodejs 16.0.0 (including) 16.12.0 (including)
Node.js Nodejs 16.13.0 (including) 16.16.0 (excluding)
Node.js Nodejs 18.0.0 (including) 18.5.0 (excluding)
Nodejs Ubuntu impish *
Nodejs Ubuntu jammy *
Nodejs Ubuntu kinetic *
Nodejs Ubuntu trusty *
Nodejs Ubuntu xenial *
Red Hat Enterprise Linux 8 RedHat nodejs:14-8060020220804102127.ad008a3a *
Red Hat Enterprise Linux 8 RedHat nodejs:16-8060020220805104227.ad008a3a *
Red Hat Enterprise Linux 8.4 Extended Update Support RedHat nodejs:14-8040020220804130254.522a0ee4 *
Red Hat Enterprise Linux 9 RedHat nodejs-1:16.16.0-1.el9_0 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-nodejs14-nodejs-0:14.20.0-2.el7 *

Extended Description

HTTP requests or responses (“messages”) can be malformed or unexpected in ways that cause web servers or clients to interpret the messages in different ways than intermediary HTTP agents such as load balancers, reverse proxies, web caching proxies, application firewalls, etc. For example, an adversary may be able to add duplicate or different header fields that a client or server might interpret as one set of messages, whereas the intermediary might interpret the same sequence of bytes as a different set of messages. For example, discrepancies can arise in how to handle duplicate headers like two Transfer-encoding (TE) or two Content-length (CL), or the malicious HTTP message will have different headers for TE and CL. The inconsistent parsing and interpretation of messages can allow the adversary to “smuggle” a message to the client/server without the intermediary being aware of it. This weakness is usually the result of the usage of outdated or incompatible HTTP protocol versions in the HTTP agents.

Potential Mitigations

References