Cyber Resilience

CVE-2022-24112

Auth Bypass in Apache Apisix ≤ 2.10.4

CISA KEVActive ExploitationEUVD ExploitedPublic PoCAuth Bypass
Published
11 February 2022
Modified
23 October 2025
KEV Added
25 August 2022
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.96 99.9th percentile
Risk Priority 97 floored blend · peak EPSS

Summary

CVE-2022-24112 is a critical-severity Authentication Bypass by Spoofing (CWE-290) vulnerability in Apache Apisix. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Adversary-in-the-Middle (T1557); ranked in the top 0.1% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Apache APISIX contains a flaw in its batch-requests plugin that fails to enforce an intended check overriding the client IP with the real remote IP address. This allows an attacker to spoof requests and bypass IP-based access controls on the Admin API. The issue affects default installations that use the built-in API key and expose the Admin API on the same port as the data plane, resulting in a CVSS 9.8 remote code execution vector; changing the admin key or moving the Admin API to a separate port reduces but does not eliminate the risk of IP restriction bypass.

Unauthenticated remote attackers can send crafted batch requests that reach administrative endpoints despite configured IP allow-lists. In the default configuration this leads directly to arbitrary code execution on the gateway; even after key or port changes, an attacker who can reach the data plane can still abuse the same plugin logic to circumvent IP restrictions and perform privileged operations.

Public advisories and exploit disclosures, including the Apache OSS-Security list and multiple Packet Storm entries, highlight that the root cause is an incomplete IP-verification check inside the batch-requests plugin. Recommended mitigations center on disabling the plugin when not required, enforcing a non-default admin key, and ensuring the Admin API listens on a distinct, firewalled port from the data plane.

The CVE maintains an extremely high EPSS score with a recorded peak of 0.9744, indicating sustained exploitation interest following disclosure. Public proof-of-concept code has been available since February 2022.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)
KEV Date Added
25 August 2022

Related Threats

MITRE ATT&CK Enterprise Techniques

T1557 Adversary-in-the-Middle Credential Access
Adversaries may attempt to position themselves between two or more networked devices using an adversary-in-the-middle (AiTM) technique to support follow-on behaviors such as [Network Sniffing](https://attack.
T1557.001 Name Resolution Poisoning and SMB Relay Credential Access
By responding to LLMNR/NBT-NS/mDNS network traffic, adversaries may spoof an authoritative source for name resolution to force communication with an adversary controlled system.
T1036 Masquerading Stealth
Adversaries may attempt to manipulate features of their artifacts to make them appear legitimate or benign to users and/or security tools.
T1036.001 Invalid Code Signature Stealth
Adversaries may attempt to mimic features of valid code signatures to increase the chance of deceiving a user, analyst, or tool.
T1134 Access Token Manipulation Stealth
Adversaries may modify access tokens to operate under a different user or system security context to perform actions and bypass access controls.
T1134.001 Token Impersonation/Theft Stealth
Adversaries may duplicate then impersonate another user's existing token to escalate privileges and bypass access controls.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-49231Same product: Apache Apisix
CVE-2026-39999Same product: Apache Apisix
CVE-2026-44046Same product: Apache Apisix
CVE-2026-49872Same product: Apache Apisix
CVE-2026-47341Same product: Apache Apisix
CVE-2026-44087Same product: Apache Apisix
CVE-2025-27446Same product: Apache Apisix
CVE-2025-46647Same product: Apache Apisix
CVE-2026-39998Same product: Apache Apisix
CVE-2024-32638Same product: Apache Apisix

Affected Assets

apache
apisix
≤ 2.10.4 · 2.11.0 — 2.12.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V6.4.3
  • V10.4.16
  • V10.5.1
  • V11.4.3

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-290

Reveals spoofed logon attempts through unexpected previous logon timestamps upon legitimate login.

addresses: CWE-290

Training specifically addresses recognizing spoofed communications and phishing that enable authentication bypass.

addresses: CWE-290

Requiring verifiable identity evidence at appropriate assurance levels makes it substantially harder for attackers to successfully spoof or impersonate users to obtain accounts.

addresses: CWE-290

Unique device authentication makes successful spoofing of device identity substantially more difficult to achieve.

addresses: CWE-290

Unique identification of non-organizational users reduces the feasibility of authentication bypass by spoofing.

addresses: CWE-290

Unique identification and authentication of services before communications makes spoofing of service identities substantially harder.

addresses: CWE-290

Isolated trusted path ensures the user interacts only with genuine system components, preventing spoofing of authentication interfaces or prompts.

addresses: CWE-290

Directly counters DNS response spoofing by requiring cryptographic origin authentication artifacts from the authoritative source.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-04 full match
prevents

Protecting, conveying, and verifying identity assertions specifically prevents the spoofing that enables authentication bypass.

PR.AA-03 mostly match
prevents

Requiring authentication of users/services/hardware directly counters spoofing-based bypass when strong methods are used.

PR.AA-02 partial match
prevents

Proofing and binding identities reduces spoofing opportunities during enrollment but does not address runtime authentication implementation flaws.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

degrades

Secure authentication control directly mitigates authentication bypass by spoofing.

degrades

Authentication information management directly addresses credential handling that prevents spoofing.

finds

Security testing can detect spoofing vulnerabilities but does not prevent them by itself.

prevents

Access control policy reduces spoofing opportunities but does not prescribe authentication mechanisms.

prevents

Identity management supports unique identities but does not guarantee resistance to spoofing.

prevents

Access rights assignment limits exposure but does not enforce authentication strength.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

Oracle Linux 8 (1 rule)
  • V-248827 OL 8 must not have the rsh-server package installed. prevents CWE-290
RHEL 7 (1 rule)
  • V-204442 The Red Hat Enterprise Linux operating system must not have the rsh-server package installed. prevents CWE-290
RHEL 8 (1 rule)
  • V-230492 RHEL 8 must not have the rsh-server package installed. prevents CWE-290

References