{"answers":{"affected":"1 open source package ship an affected version, including apisix. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2022-24112 in the wild since at least 25 Aug 2022.","fix":"Upgrade apisix to a fixed version for your release line: 2.10.4 or 2.12.1. US federal agencies must fix it by 15 Sep 2022.","what":"CVE-2022-24112 is a critical authentication bypass vulnerability in Apache APISIX, published on 11 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24112 and fix it if it is affected.\n\nWhat it is: CVE-2022-24112 is a critical authentication bypass vulnerability in Apache APISIX, published on 11 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-24112 in the wild since at least 25 Aug 2022.\n\nAffected packages and fixed versions:\n- apisix (Bitnami): affected all versions; fixed in 2.10.4, 2.12.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-24112/ (Markdown: https://insights.sbomify.com/CVE-2022-24112/index.md)","id":"CVE-2022-24112","markdown":"https://insights.sbomify.com/CVE-2022-24112/index.md","name":"CVE-2022-24112","record":{"aliases":["BIT-apisix-2022-24112","GHSA-2vc7-6w39-6rh2"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache APISIX API Gateway","requires_auth":"none","summary":"Attackers can bypass IP restrictions on the Admin API via the batch-requests plugin, potentially leading to remote code execution in default configurations.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"apisix","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"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.","ecosystems":["Bitnami"],"exploits":{"exploitdb":1,"first_seen":"2020-12-07","github_poc":10,"max_poc_stars":43,"metasploit":1,"nuclei":1,"refs":[{"date":"2022-02-22T14:09:49Z","kind":"github_poc","ref":"https://github.com/Mr-xn/CVE-2022-24112","stars":43,"title":"CVE-2022-24112：Apache APISIX apisix/batch-requests RCE"},{"date":"2022-03-16T09:19:12Z","kind":"github_poc","ref":"https://github.com/M4xSec/Apache-APISIX-CVE-2022-24112","stars":15,"title":"Apache APISIX Remote Code Execution (CVE-2022-24112) proof of concept exploit "},{"date":"2022-03-20T16:35:55Z","kind":"github_poc","ref":"https://github.com/twseptian/cve-2022-24112","stars":9,"title":"Apache APISIX \u003c 2.12.1 Remote Code Execution and Docker Lab"},{"date":"2022-02-25T15:17:28Z","kind":"github_poc","ref":"https://github.com/SecNN/CVE-2022-24112","stars":8,"title":"Apache APISIX batch-requests RCE(CVE-2022-24112)"},{"date":"2022-03-08T17:08:52Z","kind":"github_poc","ref":"https://github.com/Mah1ndra/CVE-2022-24112","stars":7,"title":"CVE-2022-24112: Apache APISIX Remote Code Execution Vulnerability"},{"date":"2022-12-03T14:31:28Z","kind":"github_poc","ref":"https://github.com/Acczdy/CVE-2022-24112_POC","stars":5,"title":"CVE-2022-24112_POC"},{"date":"2022-03-17T08:22:54Z","kind":"github_poc","ref":"https://github.com/kavishkagihan/CVE-2022-24112-POC","stars":2,"title":"Apache APISIX 2.12.1 Remote Code Execution by IP restriction bypass and using default admin AIP token"},{"date":"2024-06-03T17:33:59Z","kind":"github_poc","ref":"https://github.com/btar1gan/exploit_CVE-2022-24112","stars":1,"title":"New exploit for Apache APISIX v2.12.1 - Remote code execution (RCE)"}],"tier":"exploited"},"has_fix":true,"headline":"Apache APISIX Authentication Bypass","id":"CVE-2022-24112","indexable":true,"kev":{"dateAdded":"2022-08-25","dueDate":"2022-09-15","knownRansomwareCampaignUse":"Unknown","product":"APISIX","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache APISIX Authentication Bypass Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":1,"n_references":4,"next":{"headline":"Local privilege escalation due to excessive permissions assigned to child processes","id":"CVE-2022-24113"},"packages":[{"ecosystem":"Bitnami","fixed":["2.10.4","2.12.1"],"introduced":["0","2.11.0"],"last_affected":[],"package":"apisix","purl":"pkg:bitnami/apisix","source":"BIT-apisix-2022-24112"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2022-24111"},"products":["Apache APISIX"],"published":"2022-02-11","related":[{"cvss_score":9.8,"headline":"Apache APISIX: the body_schema check in request-validation plugin can be bypassed","id":"CVE-2022-25757","kev_date_added":null,"published":"2022-03-28"},{"cvss_score":9.1,"headline":"Apache APISIX: forward auth plugin allows header injection","id":"CVE-2026-31908","kev_date_added":null,"published":"2026-04-14"},{"cvss_score":8.7,"headline":"Apache APISIX: Unauthenticated CPU-exhaustion DoS","id":"CVE-2026-75005","kev_date_added":null,"published":"2026-08-27"},{"cvss_score":7.8,"headline":"Privilege escalation in Apache APISIX Java Plugin Runner","id":"CVE-2025-27446","kev_date_added":null,"published":"2025-07-06"},{"cvss_score":7.5,"headline":"Apache APISIX: Openid-connect `tls_verify` field is disabled by default","id":"CVE-2026-31923","kev_date_added":null,"published":"2026-04-14"},{"cvss_score":7.5,"headline":"Apache APISIX: basic-auth logs plaintext credentials at info level","id":"CVE-2025-62232","kev_date_added":null,"published":"2025-10-31"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can bypass IP restrictions on the Admin API via the batch-requests plugin, potentially leading to remote code execution in default configurations.","url":"https://insights.sbomify.com/CVE-2022-24112/"}