CVE-2022-24112 is a vulnerability in Apache Apisix
Published on February 11, 2022
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.
Known Exploited Vulnerability
This Apache APISIX Authentication Bypass Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.
The following remediation steps are recommended / required by September 15, 2022: Apply updates per vendor instructions.
Vulnerability Analysis
CVE-2022-24112 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. It has the highest possible exploitability rating (3.9). The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Authentication Bypass by Spoofing
This attack-focused weakness is caused by improperly implemented authentication schemes that are subject to spoofing attacks.
Products Associated with CVE-2022-24112
You can be notified by stack.watch whenever vulnerabilities like CVE-2022-24112 are published in these products:
What versions of Apisix are vulnerable to CVE-2022-24112?
- Apache Apisix Version 2.11.0 Fixed in Version 2.12.1
- Apache Apisix Fixed in Version 2.10.4