Vulnerability Description
An attacker can abuse the batch-requests plugin to send requests to bypass the IP restriction of Admin API. A default configuration of Apache APISIX (with default API key) is vulnerable to remote code execution. When the admin key was changed or the port of Admin API was changed to a port different from the data panel, the impact is lower. But there is still a risk to bypass the IP restriction of Apache APISIX's data panel. There is a check in the batch-requests plugin which overrides the client IP with its real remote IP. But due to a bug in the code, this check can be bypassed.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Apache | Apisix | < 2.10.4 |
Related Weaknesses (CWE)
References
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.ExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-ExeExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2022/02/11/3Mailing ListMitigationThird Party Advisory
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94Mailing ListMitigationVendor Advisory
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.ExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-ExeExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2022/02/11/3Mailing ListMitigationThird Party Advisory
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94Mailing ListMitigationVendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-Third Party AdvisoryUS Government Resource
FAQ
What is CVE-2022-24112?
CVE-2022-24112 is a vulnerability with a CVSS score of 9.8 (CRITICAL). An attacker can abuse the batch-requests plugin to send requests to bypass the IP restriction of Admin API. A default configuration of Apache APISIX (with default API key) is vulnerable to remote code...
How severe is CVE-2022-24112?
CVE-2022-24112 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2022-24112?
Check the references section above for vendor advisories and patch information. Affected products include: Apache Apisix.