CVE-2022-24969: Server-side request forgery in Apache Dubbo
Summary
CVE-2022-24969: Server-side request forgery in Apache Dubbo. Affects org.apache.dubbo:dubbo versions >= 2.5.0, < 2.7.15. Fixed in 2.7.15. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Dubbo is an open-source, high-performance, and lightweight Java RPC (Remote Procedure Call) framework. It provides a distributed architecture for building scalable and reliable applications. The Dubbo package, specifically versions prior to 2.6.12 and 2.7.15, is vulnerable to a server-side request forgery (SSRF) attack. This vulnerability arises from the improper usage of the parseURL method, which bypasses the white host check. Exploiting this vulnerability can lead to open redirect or SSRF attacks.
Vulnerability Detail
The vulnerability in Apache Dubbo allows an attacker to manipulate the URL parsing mechanism, enabling them to forge requests to internal resources or external systems. By bypassing the white host check, an attacker can redirect requests to arbitrary URLs or perform SSRF attacks. This can result in unauthorized access to sensitive information, network scanning, or even remote code execution on internal systems.
How To Fix
Latest published version: 3.3.6 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.7.15
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, developers can implement additional input validation and sanitization mechanisms to prevent malicious URLs from being processed. This can include enforcing strict URL whitelisting, validating input parameters, and implementing proper URL encoding and decoding techniques. Here is an example of how to validate a URL in Java:
import java.net.URL;
public class URLValidator {
public static boolean isValidURL(String url) {
try {
new URL(url);
return true;
} catch (Exception e) {
return false;
}
}
public static void main(String[] args) {
String url = "http://example.com";
if (isValidURL(url)) {
System.out.println("Valid URL");
} else {
System.out.println("Invalid URL");
}
}
}
Conclusion
The vulnerability in Apache Dubbo (CVE-2022-24969) exposes applications to server-side request forgery (SSRF) attacks. To mitigate this risk, it is crucial to upgrade to the latest patched versions of Apache Dubbo (2.6.12 or 2.7.15). Additionally, implementing proper input validation and sanitization mechanisms can provide temporary protection against this vulnerability. For further assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.dubbo:dubbo →
FAQ
Apache Dubbo is a Java RPC framework that provides a distributed architecture for building scalable and reliable applications. It enables efficient communication between various components of a distributed system.
Server-side request forgery (SSRF) is a vulnerability that allows an attacker to make requests to internal resources or external systems on behalf of the vulnerable server. This can lead to unauthorized access, information disclosure, or remote code execution.
The vulnerability in Apache Dubbo can be exploited to perform server-side request forgery (SSRF) attacks. This can result in unauthorized access to sensitive information, network scanning, or even remote code execution on internal systems.
Yes, the recommended mitigation is to upgrade to the latest patched versions of Apache Dubbo (2.6.12 or 2.7.15). These versions address the vulnerability by properly validating and sanitizing URLs during the parsing process.
As a temporary workaround, developers can implement additional input validation and sanitization mechanisms to prevent malicious URLs from being processed. This can include enforcing strict URL whitelisting, validating input parameters, and implementing proper URL encoding and decoding techniques.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.dubbo:dubbo.