CVE-2022-24112 apisix/batch-requests plugin allows overwriting the X-REAL-IP header
- Published
- Updated
- Exploit status
- Exploited in the wild (confirmed)
- CISA SSVC
- Actively exploited · automatable: yes · technical impact: total
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 Known Exploited Vulnerability
- Date added
- 2022-08-25
- Due date (FCEB)
- 2022-09-15
- Ransomware use
- Unknown
Required action
Apply updates per vendor instructions.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache APISIX | >= 1.3; >= Apache APISIX 2.10, < 2.10.4; >= Apache APISIX 2.12, < 2.12.1 | 2.10.4, 2.12.1 | Partially fixed |
| apache apisix | < 2.10.4; >= 2.11.0, < 2.12.1 | 2.10.4, 2.12.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache APISIX | >= Apache APISIX 2.12, < 2.12.1 | 2.12.1 |
| Apache APISIX | >= Apache APISIX 2.10, < 2.10.4 | 2.10.4 |
| Apache APISIX | >= 1.3 | No fix listed |
| apache apisix | < 2.10.4 | 2.10.4 |
| apache apisix | >= 2.11.0, < 2.12.1 | 2.12.1 |
References
- lists.apache.org mailing-list mitigation vendor-advisory
- [oss-security] 20220211 CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows overwriting the X-REAL-IP header mailing-list mitigation third-party-advisory
- packetstormsecurity.com exploit third-party-advisory vdb-entry
- packetstormsecurity.com exploit third-party-advisory vdb-entry
- www.cisa.gov government-resource third-party-advisory us-government-resource
- ENISA EUVD EUVD-2022-29024 third-party-advisory