{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-25757","published":"2022-03-28T07:15:06.730000Z","last_modified":"2026-06-17T04:34:13.543000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*","part":"a","vendor":"apache","product":"apisix","version_end_excluding":"2.13.0"}],"cpes_truncated":false,"vendors":["apache"],"products":["apache/apisix"],"epss":{"score":0.02056,"percentile":0.81973,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-25757/","html_en":"/en/cve/CVE-2022-25757/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25757","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25757"},"untrusted":{"vendor_name":"Apache","product_name":"Apisix","desc_en":"In Apache APISIX before 2.13.0, when decoding JSON with duplicate keys, lua-cjson will choose the last occurred value as the result. By passing a JSON with a duplicate key, the attacker can bypass the body_schema validation in the request-validation plugin. For example, `{\"string_payload\":\"bad\",\"string_payload\":\"good\"}` can be used to hide the \"bad\" input. Systems satisfy three conditions below are affected by this attack: 1. use body_schema validation in the request-validation plugin 2. upstream application uses a special JSON library that chooses the first occurred value, like jsoniter or gojay 3. upstream application does not validate the input anymore. The fix in APISIX is to re-encode the validated JSON input back into the request body at the side of APISIX. Improper Input Validation vulnerability in __COMPONENT__ of Apache APISIX allows an attacker to __IMPACT__. This issue affects Apache APISIX Apache APISIX version 2.12.1 and prior versions.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache APISIX","versions":[]}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2022/03/28/2","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.apache.org/thread/03vd2j81krxmpz6xo8p1dl642flpo6fv","tags":["Mailing List","Vendor Advisory"]}]}}