CVE-2022-24112
published critical CVSS 3.1 · 9.8apisix/batch-requests plugin allows overwriting the X-REAL-IP header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache APISIXApache APISIX 2.12 to < 2.12.1 · Apache APISIX 2.10 to < 2.10.4 · 1.3 to < Apache APISIX 1* | Affected | Not stated | apache |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache APISIX | Apache APISIX 2.12 to < 2.12.1 (affected · custom)Apache APISIX 2.10 to < 2.10.4 (affected · custom)1.3 to < Apache APISIX 1* (affected · custom) | apache · cna |
Weaknesses
1- CWE-290 CWE-290 Authentication Bypass by Spoofing
References
5- 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
- [oss-security] 20220211 CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows overwriting the X-REAL-IP header http://www.openwall.com/lists/oss-security/2022/02/11/3
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112
Provider assertions
3apache · cna
apisix/batch-requests plugin allows overwriting the X-REAL-IP header
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- abb4109432c34eea5b9da736966d2533eb27b82dd18df8a6f25b159b5e442f87
- Ingested
- 23 Sep 2026, 07:58:49 UTC
- Source record
- Official CVE record