CVE-2022-24112

Confirmed PUBLISHED

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

Apache Software Foundation · Apache APISIX
Exploited in the wild PoC available

Recommended Action

Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.

Confidence
Confirmed
Exploitation Status
Exploited in the wild
Observed in Sensors
No
Attempts (30d)
Unique Attacker IPs
CISA KEV
In CISA KEV
CVSS / EPSS
9.8 Critical EPSS 96.2%

At a Glance

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.

nuclei_scanner apache metasploit cisa
CVE Published
Feb 11, 2022
Exploitation Reported
Aug 25, 2022
CVSS
9.8 Critical
EPSS
96.2%
Remote Low complexity No user interaction Unauthenticated

Affected Versions

Vendor Product Version Status
Apache Software Foundation
Apache APISIX

Apache APISIX 2.12 to < 2.12.1

Affected
Apache Software Foundation
Apache APISIX

Apache APISIX 2.10 to < 2.10.4

Affected
Apache Software Foundation
Apache APISIX

1.3 to < Apache APISIX 1*

Affected

CVE References

Recommended Actions

  • Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
  • Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
  • Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.