Skip to content

Apache APISIX

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

CVE-2022-24112Published 11 Feb 2022, 12:20 UTC

Real-world risk

10.0/ 10Critical

Act now: it is being exploited.

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.8

scored by CISA, CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from apache)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Apache APISIXCommon< 2.12.1; < 2.10.4; >= 1.3, < Apache APISIX 1*2.12.1, 2.10.4

What to do

Update to a fixed version: 2.12.1, 2.10.4.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T5: Exploited in the wild (× 1.00)

On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited

  • On CISA’s Known Exploited Vulnerabilities list
  • Exploit-DB entry (link)
  • Metasploit module (link)
  • Nuclei scanner template (link)
  • CISA SSVC: exploitation active

EPSS 96.1% chance of exploitation in 30 days (percentile 100), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T5: Exploited in the wild1.000
  3. 10 × impact 1 × prerequisites 1 × threat 110.000
  4. Rounded to one decimal between 0.1 and 1010.0

How the score works

Exploitation and evidence timeline

  1. 11 Feb 2022 Published
  2. 25 Aug 2022 Added to CISA KEV
  3. 3 Dec 2026 Exploit-DB entry first seen
  4. 3 Dec 2026 Metasploit module first seen
  5. 3 Dec 2026 Nuclei scanner template first seen
  6. 3 Dec 2026 CISA SSVC: exploitation active first seen
  7. 3 Dec 2026 Risk 10.0 (cvss fallback)

Weakness

CWE-290

References

Get alerts for Apache APISIX

Free email or text alerts when a vulnerability in Apache APISIX reaches risk 8 or higher. Nothing else.