CVE-2022-26650 Apache ShenYu (incubating) Regular expression denial of service

High 7.5 Published Updated

Attackers can cause resource exhaustion and denial of service in Apache ShenYu by submitting malicious regular expressions to the predicate judge.

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-26650?

CVE-2022-26650 is a high-severity denial of service vulnerability in Apache ShenYu (incubating), published on 17 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Apache ShenYui, ShenYu-Bootstrap, RegexPredicateJudge.java uses Pattern.matches(conditionData.getParamValue(), realData) to make judgments, where both parameters are controllable by the user. This can cause an attacker pass in malicious regular expressions and characters causing a resource exhaustion. This issue affects Apache ShenYu (incubating) 2.4.0, 2.4.1 and 2.4.2 and is fixed in 2.4.3.

Weakness: CWE-1333

Which versions are affected by CVE-2022-26650?

4 open source packages ship an affected version, including org.apache.shenyu:shenyu and org.apache.shenyu:shenyu-bootstrap. It affects 1 product.

PackageAffectedFixed in
org.apache.shenyu:shenyu MavenFrom 2.4.02.4.3
org.apache.shenyu:shenyu MavenFrom 2.4.02.4.3
org.apache.shenyu:shenyu-bootstrap MavenFrom 2.4.02.4.3
org.apache.shenyu:shenyu-bootstrap MavenFrom 2.4.02.4.3

Products include Apache Shenyu.

How do I fix CVE-2022-26650?

Upgrade org.apache.shenyu:shenyu to 2.4.3 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-26650 being exploited?

There is no known exploitation of CVE-2022-26650 in the wild and no public exploit code.

Sources

Also known as GHSA-cw56-j3fm-7w57.

Is CVE-2022-26650 in your software?

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

Check your SBOMs for free