{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-24112","id":"CVE-2022-24112","title":"apisix/batch-requests plugin allows overwriting the X-REAL-IP header","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 ","descriptionLong":"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.","published":"2022-02-11T12:20:13.000Z","updated":"2026-10-28T02:30:46.510045707Z","reserved":"2022-01-28T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["Apache Software Foundation Apache APISIX"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","defaultStatus":null,"versions":[{"lessThan":"2.12.1","status":"affected","version":"Apache APISIX 2.12","versionType":"custom"},{"lessThan":"2.10.4","status":"affected","version":"Apache APISIX 2.10","versionType":"custom"},{"lessThan":"Apache APISIX 1*","status":"affected","version":"1.3","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-290"],"aliases":["BIT-apisix-2022-24112"],"references":[{"url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","tags":["x_refsource_MISC","x_transferred","Mailing List","Mitigation","Vendor Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Mitigation","Third Party Advisory","article"]},{"url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112","tags":["government-resource","Third Party Advisory","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24112.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":true,"kevAdded":"2022-08-25","kevDue":"2022-09-15","kevEntry":{"cveID":"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"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.96069,"epssPercentile":0.99878,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-24112","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-24112","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2022-08-25"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-24112","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 96% with CVSS 9.8"],"attention":null}