ZeroHour

CVE-2022-24112

KEV PoC ×2moderate

Authentication Bypass Leading to RCE in Apache APISIX

CISA: Apache APISIX Authentication Bypass Vulnerability

CVSS 3.1
9.8 critical
EPSS
96%p100
Published
()
KEV added
AI analysis

CVE-2022-24112 is a client IP validation flaw (CWE-290) in the batch-requests plugin of Apache APISIX: the plugin is supposed to override the client IP with the real remote IP, but due to a coding bug this check can be bypassed, allowing an attacker to send requests that evade the IP restrictions protecting the Admin API. A remote, unauthenticated attacker sends crafted requests through the batch-requests endpoint to reach the otherwise IP-restricted Admin API or data panel. With a default APISIX configuration (default admin API key), this grants access that leads directly to remote code execution; if the admin key was changed or the Admin API runs on a different port, the attacker still gains unauthorized access to the data panel. Any deployment of Apache APISIX is affected, with default or minimally-hardened configurations facing the highest risk. The vulnerability is under active exploitation: it was added to CISA's Known Exploited Vulnerabilities catalog on 2022-08-25, carries a 96% EPSS probability of exploitation within 30 days, and public proof-of-concept exploits are available.

What to do: Upgrade Apache APISIX to the latest patched release per vendor instructions, prioritizing internet-facing instances since active exploitation is confirmed. As immediate mitigation, change the default admin API key, restrict access to the Admin API and data panel, and avoid exposing the Admin API port alongside the data panel. Check logs for anomalous requests to the batch-requests endpoint and Admin API routes indicating exploitation attempts.

Affected
Apache APISIX
Estimated exposure
moderate≈ a few thousand internet-exposed Apache APISIX instances (total installed base higher, including internal/embedded gateway deployments) — Public internet scans around the disclosure period showed on the order of thousands of APISIX instances exposed to the internet, while many additional deployments run internally or embedded in other products and are not directly exposed.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
Apache APISIX
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
apache
Products
apisix
Weakness
CWE-290
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news