Apache APISIX - Authentication Bypass (CVE-2022-24112)
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.
psychologyCrowdSec Analysis
CVE-2022-24112 is a critical vulnerability in Apache APISIX that allows attackers to exploit the batch-requests plugin to bypass IP restrictions on the Admin API, potentially leading to remote code execution when default configurations are used. This flaw enables unauthenticated attackers to circumvent security controls and gain unauthorized access, posing a significant risk of system compromise and data exposure.
CrowdSec has been tracking this vulnerability and its exploits since 8th of April 2026.
According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2022-24112 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. Additionally, according to week-over-week analysis by CrowdSec, exploitation of CVE-2022-24112 is surging. Attack volumes are spiking well above historical norms, indicating widespread and escalating interest from threat actors. CVE-2022-24112 is currently experiencing high visibility and active exploitation across the internet.
Attackers exploit the /apisix/batch-requests endpoint to send crafted requests that abuse the batch-requests plugin, often including the X-Real-IP: 127.0.0.1 header and targeting internal admin routes such as /apisix/admin/routes/index with a default or known API key to achieve remote code execution.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2022-02-11 |
| CISA KEV | 2022-08-25 |
| CISA Remediation Deadline | 2022-09-15 |
| Rule Released | 2026-04-08 |
| CrowdSec First Seen | 2026-04-09 |
Remediation & Protection
External References
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html
- http://www.openwall.com/lists/oss-security/2022/02/11/3
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24112.yaml