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

Patch nowFull system takeover over the network, no login needed.
9.8CRITICAL

Key Information:

Vendor

Apache

CVE ID
CVE ID:
CVE-2022-24112
Vendor
CVE Published:
11 February 2022
Fixed in
Fixed in:
2.12.1, 2.10.4

Timeline

Exploit known 195 days after it was published

  • 🟑

    Public PoC available

  • πŸ‘Ύ

    Exploit known to exist

  • πŸ¦…

    CISA Reported

  • Vulnerability published

  • Vulnerability Reserved

Badges

πŸ‘Ύ Exploit Exists🟑 Public PoC🟣 EPSS 95%πŸ¦… CISA Reported

How risky is it?

  • Yes: Works over the network, no login needed
  • Yes: Public exploit code (9 proof-of-concepts)
  • Yes: Attacked in the wild (on CISA's KEV list)
  • No: No ransomware use seen

Our verdict

Patch now

Attackers are using it. Patch or mitigate today.

What to do

1Update to a fixed version

Several version ranges are affected; the full list is under Affected Version(s).

Install the Apache APISIX release that fixes your version line, or later:

2.12.12.10.4
Read the vendor advisory β†—
2Follow CISA's required action

Apply updates per vendor instructions.

3Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Apache APISIX. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

4Look for signs of compromise

It is being exploited in the wild, so check logs on exposed Apache APISIX systems for unusual requests or new processes from before you patched. The 9 public proof-of-concepts show what an attack looks like.

5Why it's rated "Patch now"
  • CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
  • Exploit code is public, so attacks are easy to copy.
  • It can be exploited remotely without credentials.
  • EPSS gives it a 95.4% chance of exploitation in the next 30 days.
  • Its CVSS severity is critical (9.8).

What is CVE-2022-24112?

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 has reported CVE-2022-24112

CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2022-24112 as being exploited . Neither CISA nor our sources have linked it to ransomware campaigns so far.

The CISA's recommendation is: Apply updates per vendor instructions.

Affected Version(s)

Apache APISIX Apache APISIX 2.12 < 2.12.1

Apache APISIX Apache APISIX 2.10 < 2.10.4

Apache APISIX 1.3

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

Key Exchange Vulnerability in Apache Tomcat

CVE-2026-133325
ApacheApache TomcatπŸ˜„πŸ‘Ύ9.8CRITICAL

Improper Exception Management in Apache Tomcat Affects Multiple Versions

CVE-2026-116561
ApacheApache TomcatπŸ˜„9.1CRITICAL

Deserialization Vulnerability in Apache Roller Affects Multiple Versions

CVE-2026-129448
ApacheApache RollerπŸ˜„πŸ‘Ύ9.8CRITICAL
View more Apache vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

EPSS Score

95% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Credit

Original discovery by Real World CTF at Chaitin Tech. Reported by Sauercloud.
.