CVE-2022-24112 is a vulnerability in Apache Apisix
Published on February 11, 2022
apisix/batch-requests plugin allows overwriting the X-REAL-IP header
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. This vulnerability is known to be actively exploited by threat actors in an automatable fashion. 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.
Weakness Type
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 email with stack.watch whenever vulnerabilities like CVE-2022-24112 are published in Apache Apisix:
Affected Versions
Apache Software Foundation Apache APISIX:- Version Apache APISIX 2.12 and below 2.12.1 is affected.
- Version Apache APISIX 2.10 and below 2.10.4 is affected.
- Version 1.3 and below Apache APISIX 1* is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.