{"schemaVersion":3,"id":"CVE-2022-24112","aliases":[],"status":"published","duplicateOf":null,"title":"Apache APISIX Authentication Bypass Vulnerability","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.","dates":{"published":"2022-02-11T12:20:13.000Z","modified":"2025-10-21T23:15:46.674Z","reserved":null,"kevAdded":["2022-08-25T00:00:00.000Z"],"kevDue":["2022-09-15T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.96069,"percentile":0.99878,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0.06800000000000139,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.96001},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.96069,"percentile":0.99878}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.96001,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.96069,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.96069,"percentile":0.99878}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-08-25T00:00:00.000Z","dueDate":"2022-09-15T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Apache APISIX Authentication Bypass Vulnerability","description":"Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.","notes":[{"type":"url","href":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","label":"lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","label":"nvd.nist.gov/vuln/detail/CVE-2022-24112"}],"vendor":"Apache","product":"APISIX","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-08-25T00:00:00.000Z","dueDate":"2022-09-15T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"Apache APISIX Authentication Bypass Vulnerability","description":"Apache APISIX contains an authentication bypass vulnerability that allows for remote code execution.","notes":[{"type":"url","href":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","label":"lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2022-24112","label":"nvd.nist.gov/vuln/detail/CVE-2022-24112"}],"vendor":"Apache","product":"APISIX","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_E112507C51111E54","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_95B767DA44FA0B9B","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"50829","name":"Apache APISIX 2.12.1 - Remote Code Execution (RCE)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50829","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"multiple","file":"exploits/multiple/remote/50829.py","codes":["CVE-2022-24112"]},"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_APACHE_APISIX_API_DEFAULT_TOKEN_RCE","name":"APISIX Admin API default access token RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/apache_apisix_api_default_token_rce.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/apache_apisix_api_default_token_rce","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":4,"weaknesses":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing","description":"This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/290.html"}],"affected":[{"vendor":"apache software foundation","product":"apache apisix","name":"Apache APISIX","label":"apache apisix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ Apache APISIX 2.12, < 2.12.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ Apache APISIX 2.10, < 2.10.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.3, < Apache APISIX 1*","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache APISIX 2.12, < 2.12.1 | ≥ Apache APISIX 2.10, < 2.10.4 | ≥ 1.3, < Apache APISIX 1*","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_apisix"},{"vendor":"apache","product":"apisix","name":"APISIX","label":"apisix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.10.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.11.0, < 2.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.4 | ≥ 2.11.0, < 2.12.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-apisix","label":"Apache APISIX","category":"server-app"}},"hubHref":"/vendor/apache/apisix"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","label":"lists.apache.org/thread/lcdqywz8zy94mdysk7p3gfdgn51jmt94","hostname":"lists.apache.org","tags":["X Refsource MISC","Mailing List","Mitigation","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/11/3","label":"www.openwall.com/lists/oss-security/2022/02/11/3","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Mitigation","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/166328/Apache-APISIX-2.12.1-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24112","hostname":"www.cisa.gov","tags":["Government Resource","Third Party Advisory","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-02-11T12:20:13.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-08-25T00:00:00.000Z","label":"Added to CISA KEV","detail":"Apache APISIX Authentication Bypass Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-09-15T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:15:46.674Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T06:19:58.041Z","stale":false,"partial":false}}