# CVE-2022-24112: apisix/batch-requests plugin allows overwriting the X-REAL-IP header

> CVE-2022-24112: apisix/batch-requests plugin allows overwriting the X-REAL-IP header. CVSS 9.8 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2022-24112
Last updated: 2025-10-21T23:15:46Z

- Published: 2022-02-11 12:20 UTC · Updated: 2025-10-21 23:15 UTC · Assigner: apache
- CVSS: 9.8 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 96.1%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2022-08-25, federal due date 2022-09-15, ransomware use: Unknown
- CWE: CWE-290

## 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.

## CISA required action

Apply updates per vendor instructions.

## Affected vendors and products

- Apache Software Foundation: Apache APISIX

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2022-24112)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2022-24112)
- [http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html](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://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html)
- [https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94](https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94)
- [http://www.openwall.com/lists/oss-security/2022/02/11/3](http://www.openwall.com/lists/oss-security/2022/02/11/3)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2022-24112 · Markdown: https://rewindex.com/cve/CVE-2022-24112.md · JSON: https://rewindex.com/api/v1/cves/CVE-2022-24112 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:09:52.340Z
