# CVE-2022-24112

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.

- Page: https://www.vulneraibility.com/cve/CVE-2022-24112
- CVSS: 9.8
- Known exploited: yes, in CISA KEV since 2022-08-25; CISA due date 2022-09-15
- EPSS: 96.07% (percentile 99.9)
- Public exploit code: 1 on Exploit-DB · 1 Metasploit module · 10 GitHub proofs of concept · 1 Nuclei template (first 2022-02-22)
- CISA SSVC: exploitation active, automatable yes, technical impact total (assessed 2025-01-29)
- Weakness: CWE-290
- Published: 2022-02-11

## Affected versions

- Apache Software Foundation Apache APISIX: affected >= Apache APISIX 2.12 and < 2.12.1; >= Apache APISIX 2.10 and < 2.10.4; >= 1.3 and < Apache APISIX 1*

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94
- [other] http://www.openwall.com/lists/oss-security/2022/02/11/3
- [other] http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html
- [other] http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
