CVE-2022-24112: Apache APISIX Authentication Bypass Vulnerability

Published Feb 11, 2022
·
Updated

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.

Other sources

Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.

CISA

Affected Software

3 affected components
Apache APISIX<2.10.4
Apache APISIX>=2.11.0<2.12.1
Apache APISIX

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Change the default admin API key to a non-default, strong key in the APISIX configuration to avoid using the default API key.

    Apache APISIX (Admin API) admin API key / default API key = replace default with a non-default value
  2. Configuration

    Configure the Admin API to listen on a port different from the data panel/data plane port (i.e., change the Admin API port so it is not the same as the data panel port).

    Apache APISIX (Admin API) Admin API port = use a port different from the data panel port
  3. Configuration

    Disable the batch-requests plugin's ability to overwrite the X-REAL-IP header or configure the plugin so it does not override the client IP.

    apisix/batch-requests plugin X-REAL-IP header overwrite = disabled
  4. Compensating control

    Restrict access to the Admin API and data panel to trusted IP addresses using firewall rules, network ACLs or similar network-based controls to mitigate IP-restriction bypass.

Event History

Feb 11, 2022
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software
Aug 25, 2022
Known Exploited
via CISA·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for the Apache APISIX Authentication Bypass Vulnerability?

The vulnerability ID for the Apache APISIX Authentication Bypass Vulnerability is CVE-2022-24112.

2

What is the severity of CVE-2022-24112?

The severity of CVE-2022-24112 is critical with a CVSS score of 9.8.

3

How can an attacker exploit CVE-2022-24112?

An attacker can abuse the batch-requests plugin to send requests to bypass the IP restriction of Admin API, leading to remote code execution.

4

Which software is affected by CVE-2022-24112?

Apache APISIX versions up to 2.10.4 and versions between 2.11.0 and 2.12.1 are affected by CVE-2022-24112.

5

Are there any references for CVE-2022-24112?

Yes, you can find references for CVE-2022-24112 at the following links: [Link 1](https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94), [Link 2](http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html), [Link 3](http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203