cve.bz

CVE-2022-25881 http-cache-semantics project http-cache-semantics

7.5 highExploit referenceEPSS 1.7%Fix available

High (7.5) in http-cache-semantics project http-cache-semantics. EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in http-cache-semantics 4.1.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-03-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • http-cache-semantics (npm): fixed in 4.1.1
  • org.webjars.npm:http-cache-semantics (Maven): fixed in 4.1.1
  • Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2022-25881 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25881?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25881?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-25881 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
http-cache-semantics_project:http-cache-semanticsbefore 4.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rc47-6667-2j5jnpmhttp-cache-semantics<4.1.14.1.1
GHSA-rc47-6667-2j5jMavenorg.webjars.npm:http-cache-semantics<4.1.14.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.21.3-1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnpm1:6.14.18-1.14.21.3.1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnpm1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnpm1:9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
20 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1212.22.12-150200.4.47.1SUSE-SU-2023:1876-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1414.21.3-150200.15.46.1SUSE-SU-2023:1875-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 4 morenodejs1010.24.1-150000.1.59.1SUSE-SU-2023:1871-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.20.0-150300.7.21.2SUSE-SU-2023:1923-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.21.3-6.43.1SUSE-SU-2023:1872-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.20.0-8.27.1SUSE-SU-2023:1942-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.16.1-8.9.1SUSE-SU-2023:2662-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.20.0-150400.3.18.2SUSE-SU-2023:1924-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4, Linux Enterprise Module for Web and Scripting 15 SP5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSELeap 15.4nodejs1010.24.1-150000.1.59.1SUSE-SU-2023:1871-1
openSUSELeap 15.4nodejs1212.22.12-150200.4.47.1SUSE-SU-2023:1876-1
openSUSELeap 15.4nodejs1414.21.3-150200.15.46.1SUSE-SU-2023:1875-1
openSUSELeap 15.4nodejs1616.20.0-150400.3.18.2SUSE-SU-2023:1924-1
openSUSELeap 15.4, Leap 15.5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSETumbleweednodejs1818.16.0-1.1openSUSE-SU-2024:12870-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2023:1743
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:1582
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:1583
AlmaLinux8npm1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8npm1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8npm1:9.5.0-1.18.14.2.2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
6 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:14.21.3-1.module+el8.7.0+1183+c2c35f0aRLSA-2023:1743
Rocky Linux8nodejs1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux8nodejs1:18.14.2-2.module+el8.7.0+1177+510ae886RLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1108+49363b0dRLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1582 RLSA-2023:1743
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:1583
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2023:1743
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:1582
Rocky Linux9nodejs1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux9nodejs-nodemon0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40017+f0db1785RLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40018+a011993dRLSA-2023:2654
2 more for Rocky Linux in the JSON.
Azure Linux2nodejs16.20.1-2AZL-13173
Azure Linux2nodejs-nodemonno fix listedAZL-43768
Azure Linux3nodejs-nodemonno fix listedAZL-44958

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The impact of a succesfull exploiation of this vulnerability will only lead to a denial of service of the system,furthermore the exploitation will require an attacker to specifically craft a regular expression patterns in request headers (i.e. nontrivial input) that trigger pathological regex behavior but since most systems will have limits on header sizes or input validation that reduce the risk of triggering the extreme pathological regex cases which is why this has been marked as moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8070020230314140722.bd1311edFixed 2023-04-04RHSA-2023:1582
Red Hat Enterprise Linux 8nodejs:18-8070020230322080930.bd1311edFixed 2023-04-04RHSA-2023:1583
Red Hat Enterprise Linux 8nodejs:14-8070020230306170042.bd1311edFixed 2023-04-12RHSA-2023:1743
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020230306170312.522a0ee4Fixed 2023-03-30RHSA-2023:1533
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:14-8060020230306170237.ad008a3aFixed 2023-04-12RHSA-2023:1742
Red Hat Enterprise Linux 9nodejs:18-9020020230327152102.rhel9Fixed 2023-05-09RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-1:16.19.1-1.el9_2Fixed 2023-05-09RHSA-2023:2655
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0Fixed 2023-10-09RHSA-2023:5533
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-ui-rhel8:v1.7.8-5Fixed 2023-03-23RHSA-2023:1428
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-0:3.6-2.el7Fixed 2023-04-12RHSA-2023:1744
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Affected
.NET 6.0 on Red Hat Enterprise Linuxrh-dotnet60-dotnetOut of support scope
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Affected
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-api-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-central-db-rhel8Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-docs-rhel8Will not fix
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Will not fix
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-rhel8-operatorWill not fix
27 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-25881.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON