CVE-2022-24112 kev in the critical feed json
apisix/batch-requests plugin allows overwriting the X-REAL-IP header
published 2022-02-11 4 y ago modified 2026-09-08 2 mo ago also BIT-apisix-2022-24112 , EUVD-2022-29024
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Exploited
- added 2022-08-25
- epss
- 96.1%
- EPSS 96.1% chance of exploitation in 30 days, percentile 99.8%
- public exploits
- 2
- Metasploit, Exploit-DB, plus a Nuclei check
Summary
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.
Patch / fix
cisa required action Apply updates per vendor instructions.
- bitnami apisix 2.10.4, 2.12.1
- Apache Software Foundation Apache APISIX 2.10.4, 2.12.1
Timeline
- First public exploit (Metasploit exploit/multi/http/apache_apisix_api_default_token_rce)
- Published
- Added to CISA KEV
- CISA patch deadline
- CISA SSVC: exploitation active
Known exploited
- Added
- 4 y ago
- Patch by
- 2022-09-15 (4 y ago)
- Ransomware
- Not known
- Required action
- Apply updates per vendor instructions.
- Vendor, product
- Apache, APISIX
- CISA name
- Apache APISIX Authentication Bypass Vulnerability
CISA SSVC
- Exploitation
- Active, exploited in the wild
- Automatable
- yes
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
96.07% chance of exploitation in the next 30 days, higher than 99.8% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/multi/http/apache_apisix_api_default_token_rce APISIX Admin API default access token RCE metasploit exploit, excellent rank, 2020-12-07
- EDB-50829 Apache APISIX 2.12.1 - Remote Code Execution (RCE) remote, 2022-03-16
- Nuclei template Apache APISIX - Remote Code Execution nuclei detection template
- packetstormsecurity.com http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | apisix | <2.10.4 >=2.11.0, <2.12.1 |
2.10.4 2.12.1 |
Affected products
- Apache Software Foundation Apache APISIX
Classification
- Weakness
-
- CWE-290 Authentication Bypass by Spoofing
References
-
packetstormsecurity.com
/files/166228/Apache-APISIX-Remote-Code-Execution.html
exploit, third-party-advisory, vdb-entry, advisory
-
packetstormsecurity.com
/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html
exploit, third-party-advisory, vdb-entry, advisory
-
lists.apache.org
/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94
mailing-list, mitigation, vendor-advisory, advisory
-
openwall.com
/lists/oss-security/2022/02/11/3
mailing-list, mitigation, third-party-advisory, advisory
-
cisa.gov
/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112
government-resource, third-party-advisory, us-government-resource, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24112
web
Sources
- CVE List CVE-2022-24112
- NVD CVE-2022-24112
- OSV BIT-apisix-2022-24112
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.