CVE-2022-25881 http-cache-semantics vulnerable to Regular Expression Denial of Service

Medium 5.3 Published Updated

A malicious request header can cause excessive CPU consumption in the http-cache-semantics library, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-25881?

CVE-2022-25881 is a medium-severity denial of service vulnerability in http-cache-semantics, published on 31 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-1333

Which versions are affected by CVE-2022-25881?

4 open source packages ship an affected version, including org.webjars.npm:http-cache-semantics and http-cache-semantics. It affects 1 product.

PackageAffectedFixed in
org.webjars.npm:http-cache-semantics MavenAll versions4.1.1
org.webjars.npm:http-cache-semantics MavenAll versions4.1.1
http-cache-semantics npmAll versions4.1.1
http-cache-semantics npmAll versions4.1.1
Linux distribution packages (36)
nodejs10 SUSE:Enterprise Storage 7All versions10.24.1-150000.1.59.1
nodejs12 SUSE:Enterprise Storage 7All versions12.22.12-150200.4.47.1
nodejs14 SUSE:Enterprise Storage 7All versions14.21.3-150200.15.46.1
nodejs12 SUSE:Enterprise Storage 7.1All versions12.22.12-150200.4.47.1
nodejs14 SUSE:Enterprise Storage 7.1All versions14.21.3-150200.15.46.1
nodejs16 SUSE:Enterprise Storage 7.1All versions16.20.0-150300.7.21.2
nodejs10 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions10.24.1-150000.1.59.1
nodejs10 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions10.24.1-150000.1.59.1
nodejs12 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions14.21.3-150200.15.46.1
nodejs12 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions14.21.3-150200.15.46.1
nodejs16 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions16.20.0-150300.7.21.2
nodejs12 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions14.21.3-150200.15.46.1
nodejs16 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions16.20.0-150300.7.21.2
nodejs14 SUSE:Linux Enterprise Module for Web and Scripting 12All versions14.21.3-6.43.1
nodejs16 SUSE:Linux Enterprise Module for Web and Scripting 12All versions16.20.0-8.27.1
nodejs16 SUSE:Linux Enterprise Module for Web and Scripting 15 SP4All versions16.20.0-150400.3.18.2
nodejs10 SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions10.24.1-150000.1.59.1
nodejs10 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions10.24.1-150000.1.59.1
nodejs12 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions14.21.3-150200.15.46.1
nodejs12 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions14.21.3-150200.15.46.1
nodejs16 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions16.20.0-150300.7.21.2
nodejs10 SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions10.24.1-150000.1.59.1
nodejs10 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions10.24.1-150000.1.59.1
nodejs12 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions14.21.3-150200.15.46.1
nodejs12 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions12.22.12-150200.4.47.1
nodejs14 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions14.21.3-150200.15.46.1
nodejs16 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions16.20.0-150300.7.21.2
nodejs12 SUSE:Manager Server 4.2All versions12.22.12-150200.4.47.1
nodejs14 SUSE:Manager Server 4.2All versions14.21.3-150200.15.46.1
nodejs16 SUSE:Manager Server 4.2All versions16.20.0-150300.7.21.2

Products include Http-Cache-Semantics Project Http-Cache-Semantics.

How do I fix CVE-2022-25881?

Upgrade org.webjars.npm:http-cache-semantics to 4.1.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-25881 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25881 exists.

Sources

Also known as AZL-13173, AZL-43768, AZL-44958, CLEANSTART-2026-IK83988, CLEANSTART-2026-OX04793, GHSA-rc47-6667-2j5j and 10 more.

Is CVE-2022-25881 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free