Bug 1208744 (CVE-2022-25881) - VUL-0: CVE-2022-25881: nodejs10,nodejs8,nodejs6,nodejs14,nodejs16,nodejs4,nodejs18,nodejs12: http-cache-semantics: Regular Expression Denial of Service (ReDoS) vulnerability
Summary: VUL-0: CVE-2022-25881: nodejs10,nodejs8,nodejs6,nodejs14,nodejs16,nodejs4,nod...
Status: RESOLVED FIXED
Alias: CVE-2022-25881
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Adam Majer
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/355760/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-25881:7.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-28 09:18 UTC by Marcus Meissner
Modified: 2023-07-06 12:34 UTC (History)
3 users (show)

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


Attachments
upstream patch (1.59 KB, text/plain)
2023-02-28 09:49 UTC, Adam Majer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2023-02-28 09:18:50 UTC
CVE-2022-25881

This affects versions of the package http-cache-semantics before 4.1.1. The
issue can be exploited via malicious request header values sent to a server,
when that server reads the cache policy from the request using this library.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-25881
https://bugzilla.redhat.com/show_bug.cgi?id=2165824
https://www.cve.org/CVERecord?id=CVE-2022-25881
http://www.cvedetails.com/cve/CVE-2022-25881/
https://github.com/kornelski/http-cache-semantics/blob/master/index.js%23L83
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3253332
https://security.snyk.io/vuln/SNYK-JS-HTTPCACHESEMANTICS-3248783
Comment 1 Marcus Meissner 2023-02-28 09:19:06 UTC
this seems to be part of npm18 at least.
Comment 2 Adam Majer 2023-02-28 09:49:49 UTC
Created attachment 865152 [details]
upstream patch

Looks like npm18 is not affected. As for the rest, while they are affected, this is for `npm`, so for this usecase I would call this a minor defect as it's not possible to trigger it without first compromising a trusted remote server. `npm` is not listening for connections.


./nodejs8/nodejs8.spec:Provides:       bundled(node-http-cache-semantics) = 3.8.1
./nodejs10/nodejs10.spec:Provides:       bundled(node-http-cache-semantics) = 3.8.1
./nodejs12/nodejs12.spec:Provides:       bundled(node-http-cache-semantics) = 3.8.1
./nodejs14/nodejs14.spec:Provides:       bundled(node-http-cache-semantics) = 3.8.1
./nodejs16/nodejs16.spec:Provides:       bundled(node-http-cache-semantics) = 4.1.0
./nodejs18/nodejs18.spec:Provides:       bundled(node-http-cache-semantics) = 4.1.1
./nodejs19/nodejs19.spec:Provides:       bundled(node-http-cache-semantics) = 4.1.1

The fix is here,

https://github.com/kornelski/http-cache-semantics/commit/560b2d8ef452bbba20ffed69dc155d63ac757b74
Comment 11 OBSbugzilla Bot 2023-04-17 11:05:03 UTC
This is an autogenerated message for OBS integration:
This bug (1208744) was mentioned in
https://build.opensuse.org/request/show/1079891 Factory / nodejs18
Comment 12 Maintenance Automation 2023-04-17 16:30:01 UTC
SUSE-SU-2023:1871-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
openSUSE Leap 15.4 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): nodejs10-10.24.1-150000.1.59.1
SUSE Enterprise Storage 7 (src): nodejs10-10.24.1-150000.1.59.1
SUSE CaaS Platform 4.0 (src): nodejs10-10.24.1-150000.1.59.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 13 Maintenance Automation 2023-04-17 20:30:02 UTC
SUSE-SU-2023:1872-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
Web and Scripting Module 12 (src): nodejs14-14.21.3-6.43.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 14 Maintenance Automation 2023-04-18 08:30:04 UTC
SUSE-SU-2023:1876-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
openSUSE Leap 15.4 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Manager Server 4.2 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Enterprise Storage 7.1 (src): nodejs12-12.22.12-150200.4.47.1
SUSE Enterprise Storage 7 (src): nodejs12-12.22.12-150200.4.47.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 15 Maintenance Automation 2023-04-18 08:30:06 UTC
SUSE-SU-2023:1875-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
openSUSE Leap 15.4 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Manager Server 4.2 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Enterprise Storage 7.1 (src): nodejs14-14.21.3-150200.15.46.1
SUSE Enterprise Storage 7 (src): nodejs14-14.21.3-150200.15.46.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 16 Maintenance Automation 2023-04-20 08:30:08 UTC
SUSE-SU-2023:1924-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
openSUSE Leap 15.4 (src): nodejs16-16.20.0-150400.3.18.2
Web and Scripting Module 15-SP4 (src): nodejs16-16.20.0-150400.3.18.2

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 17 Maintenance Automation 2023-04-20 08:30:10 UTC
SUSE-SU-2023:1923-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): nodejs16-16.20.0-150300.7.21.2
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): nodejs16-16.20.0-150300.7.21.2
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): nodejs16-16.20.0-150300.7.21.2
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): nodejs16-16.20.0-150300.7.21.2
SUSE Manager Server 4.2 (src): nodejs16-16.20.0-150300.7.21.2
SUSE Enterprise Storage 7.1 (src): nodejs16-16.20.0-150300.7.21.2

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 18 Maintenance Automation 2023-04-21 12:30:06 UTC
SUSE-SU-2023:1942-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1208744
CVE References: CVE-2022-25881
Sources used:
Web and Scripting Module 12 (src): nodejs16-16.20.0-8.27.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 20 Cathy Hu 2023-06-23 09:07:55 UTC
done, closing
Comment 21 Maintenance Automation 2023-06-27 20:30:21 UTC
SUSE-SU-2023:2662-1: An update that solves 10 vulnerabilities and has one fix can now be installed.

Category: security (important)
Bug References: 1208744, 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583
CVE References: CVE-2022-25881, CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067
Sources used:
Web and Scripting Module 12 (src): nodejs18-18.16.1-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 22 Maintenance Automation 2023-06-28 11:42:48 UTC
SUSE-SU-2023:2669-1: An update that solves 10 vulnerabilities and has one fix can now be installed.

Category: security (important)
Bug References: 1208744, 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583
CVE References: CVE-2022-25881, CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067
Sources used:
openSUSE Leap 15.4 (src): nodejs18-18.16.1-150400.9.9.1
openSUSE Leap 15.5 (src): nodejs18-18.16.1-150400.9.9.1
Web and Scripting Module 15-SP4 (src): nodejs18-18.16.1-150400.9.9.1
Web and Scripting Module 15-SP5 (src): nodejs18-18.16.1-150400.9.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.