Skip to main content
← All vulnerabilities
CVE-2022-24112

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

Published
Last modified
published
Listed in CISA KEV
Fix
Fixed in 2.12.1, 2.10.4, Apache APISIX 1*
None on Exploit-DB, Metasploit or GitHub

Summary

The batch-requests plugin in Apache APISIX, an open-source API gateway, is affected. An attacker can exploit a flaw in it to bypass IP restrictions on the Admin API, which in a default configuration can lead to remote code execution, and it can also bypass IP restrictions on the data plane.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache APISIX

    From Apache APISIX 2.12 · fixed in 2.12.1; From Apache APISIX 2.10 · fixed in 2.10.4; From 1.3 · fixed in Apache APISIX 1*

References 4

lists.apache.org

openwall.com

packetstormsecurity.com