{"id":"CVE-2022-24112","aliases":["CVE-2022-24112","BIT-APISIX-2022-24112"],"related":[],"kind":"vulnerability","state":"published","title":"apisix/batch-requests plugin allows overwriting the X-REAL-IP header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Un atacante puede abusar del plugin batch-requests para enviar peticiones para omitir la restricción de IP de la API de administración. Una configuración por defecto de Apache APISIX (con la clave API por defecto) es vulnerable a una ejecución de código remota. Cuando ha  sido cambiada la clave de administración o ha sido cambiado el puerto de la API de administración a un puerto diferente al del panel de datos, el impacto es menor. Pero todavía se presenta el riesgo de omitir la restricción de IP del panel de datos de Apache APISIX. Se presenta una comprobación en el plugin de peticiones por lotes que anula la IP del cliente con su IP remota real. Pero debido a un error en el código, esta comprobación puede ser omitida","source":"nvd"},{"lang":"en","text":"Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.","source":"kev"}],"published":"2022-02-11T12:20:13.000Z","modified":"2026-09-08T08:45:33.779Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache APISIX 2.12","fixed":"2.12.1","status":"affected"},{"type":"custom","introduced":"Apache APISIX 2.10","fixed":"2.10.4","status":"affected"},{"type":"custom","introduced":"1.3","fixed":"Apache APISIX 1*","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache APISIX","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.10.4"},{"status":"affected","introduced":"2.11.0","fixed":"2.12.1"}],"vendor":"apache","product":"apisix","cpe":"cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.10.4"},{"type":"semver","introduced":"2.11.0","status":"affected","fixed":"2.12.1"}],"ecosystem":"Bitnami","package":"apisix","purl":"pkg:bitnami/apisix","source":"bitnami"},{"ranges":[],"vendor":"Apache","product":"APISIX","source":"kev"}],"references":[{"url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","tags":["advisory","kev","mailing-list","mitigation","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami","kev"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/3","tags":["advisory","mailing-list","mitigation","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","tags":["advisory","exploit","third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","tags":["advisory","exploit","third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112","tags":["advisory","government-resource","third-party-advisory","us-government-resource"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","tags":["kev","web"],"sources":["bitnami","kev"]}],"credits":["Original discovery by Real World CTF at Chaitin Tech. Reported by Sauercloud."],"assigner":"apache","kev":{"dateAdded":"2022-08-25","dueDate":"2022-09-15","name":"Apache APISIX Authentication Bypass Vulnerability","requiredAction":"Apply updates per vendor instructions.","ransomware":false,"notes":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94;  https://nvd.nist.gov/vuln/detail/CVE-2022-24112"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"yes","technicalImpact":"total","date":"2025-01-29T21:21:39.557Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24112","url":"https://www.cve.org/CVERecord?id=CVE-2022-24112","licence":"CVE Terms of Use","modified":"2025-10-21T23:15:46.674Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24112","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","licence":"Public domain","modified":"2026-06-17T04:31:18.883Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-APISIX-2022-24112","url":"https://osv.dev/vulnerability/BIT-APISIX-2022-24112","licence":"Apache-2.0","modified":"2026-09-08T08:45:33.779Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2022-24112","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2022-24112","licence":"CC0-1.0","modified":"2022-08-25T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:09.644Z","epss":{"score":0.96069,"percentile":0.99874,"date":"2026-12-01T12:00:22.000Z"}}