Bug 1202383 (CVE-2022-35948) - VUL-0: CVE-2022-35948: nodejs16: undici - CRLF Injection via Content-Type
Summary: VUL-0: CVE-2022-35948: nodejs16: undici - CRLF Injection via Content-Type
Status: RESOLVED FIXED
Alias: CVE-2022-35948
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/339837/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-35948:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-15 07:30 UTC by Robert Frohl
Modified: 2024-04-19 11:40 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2022-08-15 07:30:26 UTC
=< undici@5.8.0 users are vulnerable to CRLF Injection on headers when using unsanitized input as request headers, more specifically, inside the content-type header.

Example:

import { request } from 'undici'

const unsanitizedContentTypeInput =  'application/json\r\n\r\nGET /foo2 HTTP/1.1'

await request('http://localhost:3000, {
    method: 'GET',
    headers: {
      'content-type': unsanitizedContentTypeInput
    },
})

The above snippet will perform two requests in a single request API call:

    http://localhost:3000/
    http://localhost:3000/foo2
Comment 2 Robert Frohl 2022-08-15 08:15:13 UTC
tracking as affected:

- SUSE:SLE-12-SP5:Update/nodejs16
- SUSE:SLE-15-SP3:Update/nodejs16
- SUSE:SLE-15-SP4:Update/nodejs16
Comment 5 OBSbugzilla Bot 2022-08-25 16:40:07 UTC
This is an autogenerated message for OBS integration:
This bug (1202383) was mentioned in
https://build.opensuse.org/request/show/999257 Factory / nodejs16
Comment 6 Swamp Workflow Management 2022-09-08 13:59:38 UTC
SUSE-SU-2022:3196-1: An update that solves four vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1200303,1200517,1201710,1202382,1202383
CVE References: CVE-2022-29244,CVE-2022-31150,CVE-2022-35948,CVE-2022-35949
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Web Scripting 12 (src):    nodejs16-16.17.0-8.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Swamp Workflow Management 2022-09-12 10:27:01 UTC
SUSE-SU-2022:3250-1: An update that solves four vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1200303,1200517,1201710,1202382,1202383
CVE References: CVE-2022-29244,CVE-2022-31150,CVE-2022-35948,CVE-2022-35949
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    nodejs16-16.17.0-150400.3.6.1
SUSE Linux Enterprise Module for Web Scripting 15-SP4 (src):    nodejs16-16.17.0-150400.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2022-09-12 10:33:38 UTC
SUSE-SU-2022:3251-1: An update that solves four vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 1200303,1200517,1201710,1202382,1202383
CVE References: CVE-2022-29244,CVE-2022-31150,CVE-2022-35948,CVE-2022-35949
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    nodejs16-16.17.0-150300.7.9.1
SUSE Linux Enterprise Module for Web Scripting 15-SP3 (src):    nodejs16-16.17.0-150300.7.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Robert Frohl 2024-04-19 11:40:13 UTC
done