Vulnerabilities in pkg:maven/org.springblade/blade-core-tool

PACKAGE
Advisory Identifier: GHSA-62pr-54gv-vg5g
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springblade/blade-core-tool

1 Known Advisory Record(s)

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

CVE Identifier CVE-2023-40787
GHSA Identifier GHSA-62pr-54gv-vg5g
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

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.

org.springblade:blade-core-tool fixed: Latest secure release
<dependency>
    <groupId>org.springblade</groupId>
    <artifactId>blade-core-tool</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2023-40787 is a security vulnerability in Spring Framework involving SpringBlade vulnerable to SQL injection under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Spring Framework versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.springblade:blade-core-tool.
What version fixes CVE-2023-40787?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is blade-core-tool affected?
Yes, org.springblade:blade-core-tool is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2023-40787?
CVE-2023-40787 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (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.).
How can I check Maven dependencies for CVE-2023-40787?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springblade'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}