{"id":"CVE-2022-24112","summary":"apisix/batch-requests plugin allows overwriting the X-REAL-IP header","details":"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.","aliases":["BIT-apisix-2022-24112"],"modified":"2026-08-12T03:30:19.149640362Z","published":"2022-02-11T12:20:13Z","database_specific":{"unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"Apache APISIX 2.12"},{"fixed":"2.12.1"},{"introduced":"Apache APISIX 2.10"},{"fixed":"2.10.4"},{"introduced":"1.3"},{"fixed":"Apache APISIX 1*"}]}],"cna_assigner":"apache","cwe_ids":["CWE-290"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24112.json"},"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html"},{"type":"WEB","url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html"},{"type":"WEB","url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94"},{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24112.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/02/11/3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/apisix","events":[{"introduced":"0"},{"fixed":"d4e658fed1fb998e3301597f663a7fa9cd1d15c3"},{"introduced":"a694c4d1d6fe8212af50d4e8573be8aa5564d5a8"},{"fixed":"f118f5ea7a5d96023a7bd546545f7c1ad6486495"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.10.4"},{"introduced":"2.11.0"},{"fixed":"2.12.1"}]}}],"versions":["2.12.0","2.10.3","2.10.2","2.10.1","2.10.0","v0.9","0.9-RC1","v0.7","v0.5","v0.4.1","v0.4","v0.3-1","v0.3","v0.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-24112.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}