CVE-2022-24112apisix/batch-requests plugin allows overwriting the X-REAL-IP header
Updated under an hour ago ()
Does this affect you?
It affects Apache Software Foundation Apache APISIX and 1 other product. Add what you run to find out whether that includes you.
CISA lists it as known exploited since Aug 25, 2022; federal agencies had to remediate by Sep 15, 2022. Treat that date as your deadline.
Do this next
Free account, 1 product
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
- 9.8 CRITICAL (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-290
- Known exploited
- Added to CISA KEV Aug 25, 2022; federal remediation due Sep 15, 2022Apply updates per vendor instructions.
- EPSS (exploitation in the next 30 days)
- 96.07% (percentile 100)
- Assigned by
- apache
- NVD analysis
- Analyzed
- Record last updated
- Oct 21, 2025
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Apache Software Foundation Apache APISIX apache_software_foundation:apache_apisix (from the name) | from Apache APISIX 2.12 before 2.12.1; from Apache APISIX 2.10 before 2.10.4; from 1.3 before Apache APISIX 1* | CNA record |
apache apisix apache:apisix | before 2.10.4; from 2.11.0 before 2.12.1 | NVD |
References
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94x-refsource-misc, mailing-list, mitigation, vendor-advisory
- http://www.openwall.com/lists/oss-security/2022/02/11/3mailing-list, x-refsource-mlist, mitigation, third-party-advisory
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.htmlx-refsource-misc, exploit, third-party-advisory, vdb-entry
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.htmlx-refsource-misc, exploit, third-party-advisory, vdb-entry
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112third-party-advisory, us-government-resource
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.