CVE-2022-37435: Shenyu common Apache ShenYu Admin Has Insecure Vulnerability
HIGHCVE-2022-37435 is a HIGH (CVSS 8.8) apache shenyu admin has insecure vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Shenyu common libraries in the Maven ecosystem. The issue involves apache shenyu admin has insecure permissions. Remediation is available by upgrading affected packages to version 2.5.0.
CVE-2022-37435 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-37435
To remediate this vulnerability, upgrade all affected Shenyu common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-common</artifactId>
<version>2.5.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.shenyu
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-37435, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.shenyu
Analyze the terminal output to locate any version of Shenyu common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.shenyu command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Shenyu common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-37435 Affected Shenyu common Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.shenyu:shenyu-common
|
Maven |
≥ 2.4.2
< 2.5.0
|
2.5.0
|
References
Frequently Asked Questions
What is CVE-2022-37435?
Which Shenyu common versions are affected?
What version fixes CVE-2022-37435?
Is shenyu-common affected?
What is the CVSS score of CVE-2022-37435?
What CWE is associated with CVE-2022-37435?
How can I check Maven dependencies for CVE-2022-37435?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fjjw-82xw-vfc2",
"modified" : "2023-07-25T16:46:14Z",
"published" : "2022-09-02T00:01:09Z",
"aliases" : [ "CVE-2022-37435" ],
"summary" : "Apache ShenYu Admin has insecure permissions",
"details" : "Apache ShenYu Admin has insecure permissions, which may allow low-privilege administrators to modify high-privilege administrator's passwords. This issue affects Apache ShenYu 2.4.2 and 2.4.3. Version 2.5.0 contains a patch for this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.shenyu:shenyu-common"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.2"
}, {
"fixed" : "2.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.4.3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-37435"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/shenyu/pull/3658"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/shenyu/releases/tag/v2.5.0"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/ndblyxr2fdrvjtgbs1bogxgv2cgk7t28"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-732" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-15T03:31:15Z",
"nvd_published_at" : "2022-09-01T14:15:00Z"
}
}