CVE-2021-25640 Open Redirect or SSRF vulnerability usage of parseURL

Medium 6.1 Published Updated

Attackers can bypass host whitelisting in Apache Dubbo to perform Server-Side Request Forgery or open redirects via the parseURL method.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-25640?

CVE-2021-25640 is a medium-severity server-side request forgery vulnerability in Apache Dubbo, published on 31 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Apache Dubbo prior to 2.6.9 and 2.7.9, the usage of parseURL method will lead to the bypass of white host check which can cause open redirect or SSRF vulnerability.

Weakness: CWE-601, CWE-918

Which versions are affected by CVE-2021-25640?

4 open source packages ship an affected version, including org.apache.dubbo:dubbo and com.alibaba:dubbo. It affects 1 product.

PackageAffectedFixed in
org.apache.dubbo:dubbo MavenFrom 2.5.02.7.10
org.apache.dubbo:dubbo MavenFrom 2.5.02.7.10
com.alibaba:dubbo MavenFrom 2.5.02.6.9
com.alibaba:dubbo MavenFrom 2.5.02.6.9

Products include Apache Dubbo.

How do I fix CVE-2021-25640?

Upgrade org.apache.dubbo:dubbo to 2.7.10 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2021-25640 being exploited?

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

Sources

Also known as GHSA-gw4j-4229-q4px.

Is CVE-2021-25640 in your software?

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

Check your SBOMs for free