Vulnerabilities in pkg:maven/org.springblade/blade-core-tool
PACKAGECVE-2023-40787 is a HIGH sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves springblade vulnerable to sql injection. Remediation is available in the latest vendor maintenance releases.
pkg:maven/org.springblade/blade-core-tool
Vulnerability advisories affecting package pkg:maven/org.springblade/blade-core-tool. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-62pr-54gv-vg5g | CVE-2023-40787 | HIGH | SpringBlade vulnerable to SQL injection |
CVE-2023-40787 at a Glance
How to Fix CVE-2023-40787
To remediate this vulnerability, upgrade all affected Spring Framework 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.springblade</groupId>
<artifactId>blade-core-tool</artifactId>
<version>Latest secure release</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.springblade
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-40787, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springblade
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springblade 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Spring Framework, 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-2023-40787 Affected Spring Framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springblade:blade-core-tool
|
Maven |
3.6.0
All 1 versions
3.6.0
|
None specified
|
References
Frequently Asked Questions
What is CVE-2023-40787?
Which Spring Framework versions are affected?
What version fixes CVE-2023-40787?
Is blade-core-tool affected?
What CWE is associated with CVE-2023-40787?
How can I check Maven dependencies for CVE-2023-40787?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-62pr-54gv-vg5g",
"modified" : "2023-08-31T18:33:40Z",
"published" : "2023-08-29T15:31:51Z",
"aliases" : [ "CVE-2023-40787" ],
"summary" : "SpringBlade vulnerable to SQL injection",
"details" : "In SpringBlade V3.6.0 when executing SQL query, the parameters submitted by the user are not wrapped in quotation marks, which leads to SQL injection.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springblade:blade-core-tool"
},
"versions" : [ "3.6.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-40787"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/kaliwin/9d6cf58bb6ec06765cdf7b75e13ee460"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chillzhuang/blade-tool"
}, {
"type" : "WEB",
"url" : "https://sword.bladex.cn"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-31T18:33:40Z",
"nvd_published_at" : "2023-08-29T13:15:53Z"
}
}