Actively exploited · Published Feb 11, 2022 · Assigned by apache
CVE-2022-24112apisix/batch-requests plugin allows overwriting the X-REAL-IP header
Critical 9.8 Exploited
In plain English
A critical-severity authentication bypass by spoofing in Apache APISIX from Apache Software Foundation. Attackers are actively exploiting it in the wild (listed by CISA on August 25, 2022). The chance it is exploited in the next 30 days is estimated at 96.1% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Apply updates per vendor instructions.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Sep 15, 2022.
Official 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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache APISIX | Apache APISIX 2.12 – before 2.12.1Apache APISIX 2.10 – before 2.10.41.3 – before Apache APISIX 1* |
Weakness: CWE-290 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94 x_refsource_MISC
- [oss-security] 20220211 CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows overwriting the X-REAL-IP header mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html x_refsource_MISC
- http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112 government-resource