CVE-2022-21670

markdown-it < 1.3.2 - Uncontrolled Resource Consumption

2022-01-10 00:00
Anonymous

Strategic Overview

Status
Patched in 1.1.0
Affected Plugin
Block for Apple Maps
Affected Version
1.0.3
CVSS
5.3Medium
Weakness type
CWE-400 · Uncontrolled Resource Consumption
CVE
CVE-2022-21670
View all Block for Apple Maps vulnerabilities

At a glance

CVE-2022-21670 is a medium-severity Uncontrolled Resource Consumption vulnerability in the Block for Apple Maps WordPress plugin, affecting versions 1.0.3. It carries a CVSS score of 5.3 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 1.1.0; sites on affected versions should update now. Disclosed January 2022.

Vulnerability Overview

The package markdown-it 1.3.2 is vulnerable to Uncontrolled Resource Consumption in cases where special patterns with length greater than 50 thousand characters are used. As this package is used in some WordPress plugins, this could result in the impacted plugins being vulnerable.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user.

CWE-400: Uncontrolled Resource Consumption

Reaching this weakness in Block for Apple Maps 1.0.3 takes a caller who can reach the endpoint. Uncontrolled resource consumption means a request can make the server do an amount of work it never bounds, because the size or repetition of the job is taken from the request rather than capped by the code.

A single caller can hold PHP workers, database connections or disk open long enough to slow the site for everyone, without needing any account or any other flaw. For Block for Apple Maps the fix is 1.1.0: builds 1.0.3 are affected, anything from 1.1.0 onward is not.

Remediation

Update to version 1.1.0, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to Block for Apple Maps: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Block for Apple Maps 1.1.0 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C