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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
96.069%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-08-25
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 1
Weakness
- CWE-290: Authentication Bypass by Spoofing
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache APISIX Authentication Bypass Vulnerability |
|---|---|
| Vendor / product | Apache / APISIX |
| Date added | 2022-08-25 |
| Federal remediation due date | 2022-09-15 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-01-29 |
Timeline
- 2022-02-11Published by the CNA12:20 UTC
- 2022-03-16First Exploit-DB entry (EDB-ID 50829)33 days after publication
- 2022-08-25Added to the CISA KEV catalog195 days after publication
- 2025-01-29CISA SSVC decision recorded1083 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 50829 | remote | multiple | 2022-03-16 | no |
Nuclei templates:
- CVE-2022-24112: Apache APISIX - Remote Code Execution
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache apisix | before 2.10.4fixed in 2.10.4from 2.11.0 before 2.12.1fixed in 2.12.1 | 2.10.42.12.1 |
References
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-24112'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-24112'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-24112'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-24112'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2022-24112'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).