Vulnerability detail
Enriched intelligence for a single CVE
Critical
CVE-2022-24112
PUBLISHEDapisix/batch-requests plugin allows overwriting the X-REAL-IP header
- Vendor
- Apache Software Foundation
- Product
- Apache APISIX
- Published
- Feb 11, 2022
- EPSS
- —
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 scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitation status
Exploited in the wild
Recorded 2022-08-25 00:00:00 UTC · Source
SSVC decision points
- Exploitation
- active
- Automatable
- Yes
- Technical impact
- total
References
Known exploited vulnerability sources
Catalogues that list this CVE as a known exploited vulnerability.
| Source | Added |
|---|---|
| CISA | Aug 25, 2022 |
Scanner integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/apache_apisix_api_default_token_rce.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24112.yaml | Apr 25, 2025 |
Potential proof of concepts
These PoCs are unverified and could contain malware. Use at your own risk.
metasploit · Created Unknown
Metasploit module for CVE-2022-24112
github · Created 2022-03-17 08:22:54 UTC · 2 stars
Apache APISIX 2.12.1 Remote Code Execution by IP restriction bypass and using default admin AIP token
github · Created 2022-03-16 09:19:12 UTC · 12 stars
Apache APISIX Remote Code Execution (CVE-2022-24112) proof of concept exploit
github · Created 2022-03-08 17:08:52 UTC · 7 stars
CVE-2022-24112: Apache APISIX Remote Code Execution Vulnerability
github · Created 2022-02-25 15:17:28 UTC · 8 stars
Apache APISIX batch-requests RCE(CVE-2022-24112)
github · Created 2022-02-22 14:09:49 UTC · 44 stars
CVE-2022-24112:Apache APISIX apisix/batch-requests RCE
Timeline
-
CVE ID Reserved
-
CVE Published to Public
-
Added to KEVIntel
-
Detected by Nuclei
-
Detected by Metasploit