CVE-2022-24112

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

Published Feb 11, 2022 CVSS 3.1 · 9.8 Critical EPSS 96.1% KEV · Listed
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.

Remediation

Vendor Workaround

1. explicitly configure the enabled plugins in `conf/config.yaml`, ensure `batch-requests` is disabled. (Or just comment out `batch-requests` in `conf/config-default.yaml`) Or 1. upgrade to 2.10.4 or 2.12.1.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics epss

{'score': 0.94415}

epss

{'score': 0.9434}

Type Values Removed Values Added
Metrics kev

{'dateAdded': '2022-08-25'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'active', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 21, 2025, 11:15 PM
Reserved
Jan 28, 2022, 12:00 AM
Status
Analyzed
Published
Feb 11, 2022, 1:15 PM
Modified
Jun 17, 2026, 4:31 AM