apisix/batch-requests plugin allows overwriting the X-REAL-IP header
CVE-2022-24112Published 11 Feb 2022, 12:20 UTC
Exploited in the wild
CISA added it to the Known Exploited Vulnerabilities list on 25 Aug 2022; US federal agencies must fix it by 15 Sep 2022.
Real-world risk
10.0/ 10Critical
Act now: it is being exploited.
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.8
scored by CISA, CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from apache)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Apache APISIXCommon | < 2.12.1; < 2.10.4; >= 1.3, < Apache APISIX 1* | 2.12.1, 2.10.4 |
What to do
Update to a fixed version: 2.12.1, 2.10.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T5: Exploited in the wild (× 1.00)
On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited
- On CISA’s Known Exploited Vulnerabilities list
- Exploit-DB entry (link)
- Metasploit module (link)
- Nuclei scanner template (link)
- CISA SSVC: exploitation active
EPSS 96.1% chance of exploitation in 30 days (percentile 100), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T5: Exploited in the wild1.000
- 10 × impact 1 × prerequisites 1 × threat 110.000
- Rounded to one decimal between 0.1 and 1010.0
Exploitation and evidence timeline
- 11 Feb 2022 Published
- 25 Aug 2022 Added to CISA KEV
- 3 Dec 2026 Exploit-DB entry first seen
- 3 Dec 2026 Metasploit module first seen
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 CISA SSVC: exploitation active first seen
- 3 Dec 2026 Risk 10.0 (cvss fallback)
Weakness
CWE-290
References
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94misc, x-transferred
- http://www.openwall.com/lists/oss-security/2022/02/11/3mailing-list, mlist, x-transferred
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.htmlmisc, x-transferred
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.htmlmisc, x-transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112government-resource
- CVE-2022-24112 on CVE.org