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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2022-08-25. Apply updates per vendor instructions.
- Likelihood of exploitation in the next 30 days (EPSS): 96.1%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-02-11T12:20:13.000Z
- Modified: 2026-09-08T08:45:33.779Z
- Also known as: BIT-APISIX-2022-24112
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache APISIX: 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*
- apache apisix: before 2.10.4; from 2.11.0 before 2.12.1
- apisix (Bitnami): before 2.10.4; from 2.11.0 before 2.12.1

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html> (exploit, advisory, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html> (exploit, advisory, third-party-advisory, vdb-entry)
- <https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94> (advisory, kev, mailing-list, mitigation, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/02/11/3> (advisory, mailing-list, mitigation, third-party-advisory)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112> (advisory, government-resource, third-party-advisory, us-government-resource)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24112> (kev, web)

## Sources

- CVE List: [CVE-2022-24112](https://www.cve.org/CVERecord?id=CVE-2022-24112), CVE Terms of Use, modified 2025-10-21
- NVD: [CVE-2022-24112](https://nvd.nist.gov/vuln/detail/CVE-2022-24112), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-APISIX-2022-24112](https://osv.dev/vulnerability/BIT-APISIX-2022-24112), Apache-2.0, modified 2026-09-08
- CISA KEV: [CVE-2022-24112](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2022-24112), CC0-1.0, modified 2022-08-25

---

Page: https://cve.day/CVE-2022-24112 · Whole record: https://cve.day/CVE-2022-24112.json · Rebuilt by cve.day 2026-11-25T22:58:09.644Z
