CVEs / CVE-2022-24112
CVE-2022-24112: Apache APISIX Authentication Bypass Vulnerability
- Known exploited in the CISA KEV catalog since 25 Aug 2022
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 96% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2022-24112
Summary
Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache APISIX | from Apache APISIX 2.12, before 2.12.1 | 2.12.1 |
| Apache Software Foundation Apache APISIX | from Apache APISIX 2.10, before 2.10.4 | 2.10.4 |
| Apache Software Foundation Apache APISIX | from 1.3, before Apache APISIX 1* | Apache APISIX 1* |
Exploitation
| In CISA KEV since | 25 Aug 2022 |
|---|---|
| Due date for US federal agencies | 15 Sep 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-290 |
References
- CVE-2022-24112 on NVD
- CVE-2022-24112 in the CISA KEV catalog
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94 (cited by CISA)
- CVE-2022-24112 on OSV
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2022/02/11/3 Mailing List, Mitigation, Third Party Advisory
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94 Mailing List, Mitigation, Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112 Third Party Advisory, US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.