CVE-2021-3807
Public on
Last Modified:
Description
A regular expression denial of service (ReDoS) vulnerability was found in nodejs-ansi-regex. This could possibly cause an application using ansi-regex to use an excessive amount of CPU time when matching crafted ANSI escape codes.
Statement
This flaw requires crafted invalid ANSI escape codes in order to be exploited and only allows for denial of service of applications on the client side, hence the impact has been rated as Moderate.
In Red Hat Virtualization and Red Hat Quay some components use a vulnerable version of ansi-regex. However, all frontend code is executed on the client side. As the maximum impact of this vulnerability is denial of service in the client, the vulnerability is rated Moderate for those products.
OpenShift Container Platform 4 (OCP) ships affected version of ansi-regex in the ose-metering-hadoop container, however the metering operator is deprecated since 4.6[1]. This issue is not currently planned to be addressed in future updates and hence hadoop container has been marked as 'will not fix'.
Advanced Cluster Management for Kubernetes (RHACM) ships the affected version of ansi-regex in several containers, however the impact of this vulnerability is deemed low as it would result in an authenticated slowing down their own user interface.
Additional Information
- This content is not included.Bugzilla 2007557: nodejs-ansi-regex: Regular expression denial of service (ReDoS) matching ANSI escape codes
- Content from cwe.mitre.org is not included.CWE-400: Uncontrolled Resource Consumption
- FAQ: Frequently asked questions about CVE-2021-3807
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2021-3807
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2021-3807
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-ui-rhel8 | Fix deferred | |
| OpenShift Service Mesh 1 | kiali | Out of support scope | |
| OpenShift Service Mesh 1 | servicemesh-grafana | Out of support scope | |
| OpenShift Service Mesh 1 | servicemesh-prometheus | Out of support scope | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Affected | |
| RHODF-4.13-RHEL-9 | odf4/mcg-core-rhel9 | Fixed | RHSA-2023:3742 |
| Red Hat A-MQ Online | io.enmasse-enmasse | Out of support scope | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/application-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/grc-ui-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/grc-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-header-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-ui-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/mcm-topology-api-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/mcm-topology-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/kui-web-terminal-rhel8 | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-ui-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 1.2 | ansi-regex | Not affected | |
| Red Hat Ceph Storage 3 | grafana | Out of support scope | |
| Red Hat Ceph Storage 4 | cockpit-ceph-installer | Out of support scope | |
| Red Hat Ceph Storage 4 | ceph | Will not fix | |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Will not fix | |
| Red Hat Ceph Storage 5 | ceph | Affected | |
| Red Hat Data Grid 8 | org.infinispan-infinispan-console | Not affected | |
| Red Hat Data Grid 8 | org.infinispan-infinispan-js-client | Not affected | |
| Red Hat Decision Manager 7 | org.drools-droolsjbpm-integration | Not affected | |
| Red Hat Decision Manager 7 | org.kie.workbench-kie-wb-common | Not affected | |
| Red Hat Decision Manager 7 | org.optaweb.employeerostering-optaweb-employee-rostering | Not affected | |
| Red Hat Decision Manager 7 | org.optaweb.vehiclerouting-optaweb-vehicle-routing | Not affected | |
| Red Hat Decision Manager 7 | org.uberfire-uberfire-parent | Not affected | |
| Red Hat Enterprise Linux 8 | nodejs:12/nodejs | Affected | |
| Red Hat Enterprise Linux 8 | nodejs:16 | Fixed | RHSA-2021:5171 |
| Red Hat Enterprise Linux 8 | nodejs:14 | Fixed | RHSA-2022:0350 |
| Red Hat Enterprise Linux 8 | nodejs:16 | Fixed | RHSA-2022:6449 |
| Red Hat Enterprise Linux 8 | nodejs:12/nodejs-nodemon | Will not fix | |
| Red Hat Enterprise Linux 8.4 Extended Update Support | nodejs:14 | Fixed | RHSA-2022:0246 |
| Red Hat Enterprise Linux 9 | nodejs | Affected | |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | RHSA-2022:6595 |
| Red Hat Fuse 7 | io.apicurio-apicurito | Not affected | |
| Red Hat Fuse 7 | io.syndesis-syndesis-ui | Not affected | |
| Red Hat Fuse 7.11 | io.hawt-hawtio-online | Fixed | RHSA-2022:5532 |
| Red Hat Fuse 7.11 | io.hawt-project | Fixed | RHSA-2022:5532 |
| Red Hat Integration Camel K 1 | io.apicurio-apicurio-registry | Not affected | |
| Red Hat Integration Camel Quarkus 1 | io.apicurio-apicurio-registry | Not affected | |
| Red Hat Integration Service Registry | io.apicurio-apicurio-registry | Not affected | |
| Red Hat JBoss Data Grid 7 | org.infinispan-infinispan-js-client | Out of support scope | |
| Red Hat JBoss Data Grid 7 | org.infinispan-infinispan-management-console | Out of support scope | |
| Red Hat JBoss Data Grid 7 | org.jboss.hal-hal-parent | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 6 | org.keycloak-keycloak-parent | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | io.smallrye-smallrye-open-api-parent | Not affected | |
| Red Hat JBoss Enterprise Application Platform 7 | org.jboss.hal-hal-parent | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | io.smallrye-smallrye-open-api-parent | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | org.jboss.hal-hal-parent | Not affected | |
| Red Hat Migration Toolkit for Containers 1.6 | rhmtc/openshift-migration-ui-rhel8 | Fixed | RHSA-2022:4814 |
| Red Hat Migration Toolkit for Containers 1.7 | rhmtc/openshift-migration-ui-rhel8 | Fixed | RHSA-2022:5483 |
| Red Hat OpenShift Container Platform 3.11 | kibana | Out of support scope | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-metering-hadoop | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-prometheus | Will not fix | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-thanos-rhel8 | Will not fix | |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Will not fix | |
| Red Hat Openshift Container Storage 4 | ocs4/mcg-core-rhel8 | Out of support scope | |
| Red Hat Process Automation 7 | org.drools-droolsjbpm-integration | Not affected | |
| Red Hat Process Automation 7 | org.keycloak-keycloak-connect | Not affected | |
| Red Hat Process Automation 7 | org.keycloak-keycloak-parent | Not affected | |
| Red Hat Process Automation 7 | org.kie.workbench-kie-wb-common | Not affected | |
| Red Hat Process Automation 7 | org.optaweb.employeerostering-optaweb-employee-rostering | Not affected | |
| Red Hat Process Automation 7 | org.optaweb.vehiclerouting-optaweb-vehicle-routing | Not affected | |
| Red Hat Process Automation 7 | org.uberfire-uberfire-parent | Not affected | |
| Red Hat Quay 3 | quay/quay-rhel8 | Will not fix | |
| Red Hat Satellite 6 | tfm-rubygem-rabl | Fix deferred | |
| Red Hat Software Collections | rh-nodejs12-nodejs-nodemon | Out of support scope | |
| Red Hat Software Collections | rh-nodejs12-nodejs | Will not fix | |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs | Fixed | RHSA-2022:0041 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs-nodemon | Fixed | RHSA-2022:0041 |
| Red Hat Virtualization 4 | cockpit-ovirt | Will not fix | |
| Red Hat Virtualization Engine 4.4 | ovirt-engine-ui-extensions | Fixed | RHSA-2022:4711 |
| Red Hat Virtualization Engine 4.4 | ovirt-web-ui | Fixed | RHSA-2022:5555 |
| Red Hat build of Apicurio Registry 2 | io.apicurio-apicurio-registry | Affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7.5 | 7.5 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | None |
| Integrity Impact | None | None |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.