Skip to content

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

CriticalCVSS 9.8 EPSS 96.1% CISA KEV added 2022-08-25 · due 2022-09-15 Exploited in the wild Framework module Public exploit Scanner template PoC
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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