cve.bz

CVE-2022-21681 Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 2.9%Fix available

High (7.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in marked 4.0.10.

On this page
Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.

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
2.9% (unchanged from 2.9% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th 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: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1333 Inefficient Regular Expression Complexity
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21681 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21681?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21681?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-21681 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
marked_project:markedbefore 4.0.10
fedoraproject:fedora36

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5v2h-r2cx-5xgjnpmmarked<4.0.104.0.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-marked4.0.12+ds+~4.0.1-1DEBIAN-CVE-2022-21681
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morenode-markedno fix listedUBUNTU-CVE-2022-21681

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ceph Storage 6.1rhceph/rhceph-6-dashboard-rhel9:6-75Fixed 2023-06-15RHSA-2023:3642
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Will not fix
Red Hat build of Apicurio Registry 2markedNot affected
Red Hat Ceph Storage 5cephNot affected
Red Hat Ceph Storage 5rhceph/rhceph-5-dashboard-rhel8Affected
Red Hat Data Grid 8markedNot affected
Red Hat Enterprise Linux 8389-ds:1.4/389-ds-baseWill not fix
Red Hat Enterprise Linux 8cockpitNot affected
Red Hat Enterprise Linux 8cockpit-appstreamNot affected
Red Hat Enterprise Linux 8container-tools:2.0/cockpit-podmanNot affected
Red Hat Enterprise Linux 8container-tools:rhel8/cockpit-podmanNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 9cephWill not fix
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Fuse 7markedNot affected
Red Hat Integration Camel K 1markedNot affected
Red Hat Integration Data Virtualisation OperatormarkedOut of support scope
Red Hat Integration Service RegistrymarkedOut of support scope
5 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-21681.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

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

References

Check your stackJSON