ID

VAR-202203-1871


CVE

CVE-2022-25757


TITLE

Apache Apisix Input Validation Error Vulnerability

Trust: 1.2

sources: CNVD: CNVD-2022-38530 // CNNVD: CNNVD-202203-2307

DESCRIPTION

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. (DoS) It may be in a state. Apache Apisix is a cloud-native microservice API gateway service of the Apache Foundation. The software is implemented based on OpenResty and etcd, with dynamic routing and plug-in hot loading, suitable for API management under the microservice system

Trust: 2.16

sources: NVD: CVE-2022-25757 // JVNDB: JVNDB-2022-007447 // CNVD: CNVD-2022-38530

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2022-38530

AFFECTED PRODUCTS

vendor:apachemodel:apisixscope:ltversion:2.13.0

Trust: 1.6

vendor:apachemodel:apisixscope:eqversion: -

Trust: 0.8

vendor:apachemodel:apisixscope:eqversion:2.13.0

Trust: 0.8

vendor:apachemodel:apisixscope: - version: -

Trust: 0.8

sources: CNVD: CNVD-2022-38530 // JVNDB: JVNDB-2022-007447 // NVD: CVE-2022-25757

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2022-25757
value: CRITICAL

Trust: 1.0

NVD: CVE-2022-25757
value: CRITICAL

Trust: 0.8

CNVD: CNVD-2022-38530
value: MEDIUM

Trust: 0.6

CNNVD: CNNVD-202203-2307
value: CRITICAL

Trust: 0.6

nvd@nist.gov: CVE-2022-25757
severity: MEDIUM
baseScore: 6.8
vectorString: AV:N/AC:M/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 8.6
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2022-38530
severity: MEDIUM
baseScore: 6.8
vectorString: AV:N/AC:M/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 8.6
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

nvd@nist.gov: CVE-2022-25757
baseSeverity: CRITICAL
baseScore: 9.8
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: 3.9
impactScore: 5.9
version: 3.1

Trust: 1.0

NVD: CVE-2022-25757
baseSeverity: CRITICAL
baseScore: 9.8
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: NONE
impactScore: NONE
version: 3.0

Trust: 0.8

sources: CNVD: CNVD-2022-38530 // JVNDB: JVNDB-2022-007447 // CNNVD: CNNVD-202203-2307 // NVD: CVE-2022-25757

PROBLEMTYPE DATA

problemtype:CWE-20

Trust: 1.0

problemtype:Inappropriate input confirmation (CWE-20) [NVD evaluation ]

Trust: 0.8

sources: JVNDB: JVNDB-2022-007447 // NVD: CVE-2022-25757

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-202203-2307

TYPE

input validation error

Trust: 0.6

sources: CNNVD: CNNVD-202203-2307

PATCH

title:Patch for Apache Apisix Input Validation Error Vulnerabilityurl:https://www.cnvd.org.cn/patchInfo/show/333311

Trust: 0.6

title:Apache Apisix Enter the fix for the verification error vulnerabilityurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=187769

Trust: 0.6

sources: CNVD: CNVD-2022-38530 // CNNVD: CNNVD-202203-2307

EXTERNAL IDS

db:NVDid:CVE-2022-25757

Trust: 3.8

db:OPENWALLid:OSS-SECURITY/2022/03/28/2

Trust: 2.4

db:JVNDBid:JVNDB-2022-007447

Trust: 0.8

db:CNVDid:CNVD-2022-38530

Trust: 0.6

db:CS-HELPid:SB2022032805

Trust: 0.6

db:CNNVDid:CNNVD-202203-2307

Trust: 0.6

sources: CNVD: CNVD-2022-38530 // JVNDB: JVNDB-2022-007447 // CNNVD: CNNVD-202203-2307 // NVD: CVE-2022-25757

REFERENCES

url:http://www.openwall.com/lists/oss-security/2022/03/28/2

Trust: 2.4

url:https://lists.apache.org/thread/03vd2j81krxmpz6xo8p1dl642flpo6fv

Trust: 2.4

url:https://nvd.nist.gov/vuln/detail/cve-2022-25757

Trust: 1.4

url:https://cxsecurity.com/cveshow/cve-2022-25757/

Trust: 0.6

url:https://www.cybersecurity-help.cz/vdb/sb2022032805

Trust: 0.6

sources: CNVD: CNVD-2022-38530 // JVNDB: JVNDB-2022-007447 // CNNVD: CNNVD-202203-2307 // NVD: CVE-2022-25757

SOURCES

db:CNVDid:CNVD-2022-38530
db:JVNDBid:JVNDB-2022-007447
db:CNNVDid:CNNVD-202203-2307
db:NVDid:CVE-2022-25757

LAST UPDATE DATE

2024-11-23T21:58:28.590000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2022-38530date:2022-05-19T00:00:00
db:JVNDBid:JVNDB-2022-007447date:2023-07-14T08:38:00
db:CNNVDid:CNNVD-202203-2307date:2022-04-06T00:00:00
db:NVDid:CVE-2022-25757date:2024-11-21T06:52:56.853

SOURCES RELEASE DATE

db:CNVDid:CNVD-2022-38530date:2022-05-19T00:00:00
db:JVNDBid:JVNDB-2022-007447date:2023-07-14T00:00:00
db:CNNVDid:CNNVD-202203-2307date:2022-03-28T00:00:00
db:NVDid:CVE-2022-25757date:2022-03-28T07:15:06.730