Bug 2109354 (CVE-2022-31150) - CVE-2022-31150 nodejs16: CRLF injection in node-undici
Summary: CVE-2022-31150 nodejs16: CRLF injection in node-undici
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-31150
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2111058
Blocks: 2109356
TreeView+ depends on / blocked
 
Reported: 2022-07-21 03:41 UTC by Avinash Hanwate
Modified: 2023-01-09 06:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the undici package. When requesting an input on an unsanitized request path, method, or headers it is possible to inject Carriage Return/Line Feed (CRLF) sequences into these requests.
Clone Of:
Environment:
Last Closed: 2022-11-28 04:27:59 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:6696 0 None None None 2022-09-26 14:51:50 UTC

Description Avinash Hanwate 2022-07-21 03:41:06 UTC
undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible to inject CRLF sequences into request headers in undici in versions less than 5.7.1. A fix was released in version 5.8.0. Sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` is a workaround for this issue.

https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
https://hackerone.com/reports/409943
https://github.com/nodejs/undici/releases/tag/v5.8.0

Comment 2 errata-xmlrpc 2022-09-26 14:51:48 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8

Via RHSA-2022:6696 https://access.redhat.com/errata/RHSA-2022:6696

Comment 3 Product Security DevOps Team 2022-11-28 04:27:57 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-31150


Note You need to log in before you can comment on or make changes to this bug.