{"api_version":"1","generated_at":"2026-04-22T17:47:53+00:00","cve":"CVE-2022-24112","urls":{"html":"https://cve.report/CVE-2022-24112","api":"https://cve.report/api/cve/CVE-2022-24112.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24112","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112"},"summary":{"title":"CVE-2022-24112","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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2022-02-11 13:15:00","updated_at":"2022-05-11 14:58:00"},"problem_types":["CWE-290"],"metrics":[],"references":[{"url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"Apache APISIX 2.12.1 Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/3","name":"[oss-security] 20220211 CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows overwriting the X-REAL-IP header","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows\n overwriting the X-REAL-IP header","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","name":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","refsource":"MISC","tags":[],"title":"Apache APISIX Remote Code Execution ≈ Packet Storm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","name":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24112","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Original discovery by Real World CTF at Chaitin Tech. Reported by Sauercloud.","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"24112","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"apisix","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":{"cve_year":"2022","cve_id":"24112","cve":"CVE-2022-24112","vendorProject":"Apache","product":"APISIX","vulnerabilityName":"Apache APISIX Authentication Bypass Vulnerability","dateAdded":"2022-08-25","shortDescription":"Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-09-15","knownRansomwareCampaignUse":"Unknown","notes":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94;  https://nvd.nist.gov/vuln/detail/CVE-2022-24112","cwes":"CWE-290","catalogVersion":"2026.04.21","updated_at":"2026-04-21 13:32:18"},"epss":{"cve_year":"2022","cve_id":"24112","cve":"CVE-2022-24112","epss":"0.944390000","percentile":"0.999880000","score_date":"2026-04-21","updated_at":"2026-04-22 00:07:42"},"legacy_qids":[{"cve":"CVE-2022-24112","qid":"730361","title":"Apache Apisix Batch-Requests Plugin Remote Code Execution (RCE) Vulnerability"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2022-24112","STATE":"PUBLIC","TITLE":"apisix/batch-requests plugin allows overwriting the X-REAL-IP header"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache APISIX","version":{"version_data":[{"version_affected":"<","version_name":"Apache APISIX 2.12","version_value":"2.12.1"},{"version_affected":"<","version_name":"Apache APISIX 2.10","version_value":"2.10.4"},{"version_affected":">=","version_name":"Apache APISIX 1","version_value":"1.3"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"Original discovery by Real World CTF at Chaitin Tech. Reported by Sauercloud."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"high"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-290 Authentication Bypass by Spoofing"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","name":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94"},{"refsource":"MLIST","name":"[oss-security] 20220211 CVE-2022-24112: Apache APISIX: apisix/batch-requests plugin allows overwriting the X-REAL-IP header","url":"http://www.openwall.com/lists/oss-security/2022/02/11/3"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html"},{"refsource":"MISC","name":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html"}]},"source":{"discovery":"UNKNOWN"},"work_around":[{"lang":"eng","value":"1. explicitly configure the enabled plugins in `conf/config.yaml`, ensure `batch-requests` is disabled. (Or just comment out `batch-requests` in `conf/config-default.yaml`)\nOr\n1. upgrade to 2.10.4 or 2.12.1."}]},"nvd":{"publishedDate":"2022-02-11 13:15:00","lastModifiedDate":"2022-05-11 14:58:00","problem_types":["CWE-290"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*","versionStartIncluding":"2.11.0","versionEndExcluding":"2.12.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*","versionEndExcluding":"2.10.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24112","Ordinal":"227344","Title":"CVE-2022-24112","CVE":"CVE-2022-24112","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24112","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"24112","Ordinal":"2","NoteData":"2022-02-11","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"24112","Ordinal":"3","NoteData":"2022-02-11","Type":"Other","Title":"Modified"}]}}}