Vulnerabilities in pkg:maven/com.shopizer/sm-core-model
PACKAGECVE-2020-11007 is a CRITICAL (CVSS 6.5) negative charge vulnerability (CWE-20: Improper Input Validation) affecting Sm core model libraries in the Maven ecosystem. The issue involves negative charge in shopping cart in shopizer. Remediation is available by upgrading affected packages to version 2.11.0.
pkg:maven/com.shopizer/sm-core-model
Vulnerability advisories affecting package pkg:maven/com.shopizer/sm-core-model. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w8rc-pgxq-x2cj | CVE-2020-11007 | CRITICAL | Negative charge in shopping cart in Shopizer |
CVE-2020-11007 at a Glance
Security Impact
CVSS: 6.5
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:N/I:H/A:N).
How to Fix CVE-2020-11007
To remediate this vulnerability, upgrade all affected Sm core model 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>com.shopizer</groupId>
<artifactId>sm-core-model</artifactId>
<version>2.11.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=com.shopizer
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-11007, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.shopizer
Analyze the terminal output to locate any version of Sm core model in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.shopizer 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Sm core model, 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-2020-11007 Affected Sm core model Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.shopizer:sm-core-model
|
Maven |
< 2.11.0
|
2.11.0
|
References
Frequently Asked Questions
What is CVE-2020-11007?
Which Sm core model versions are affected?
What version fixes CVE-2020-11007?
Is sm-core-model affected?
What is the CVSS score of CVE-2020-11007?
What CWE is associated with CVE-2020-11007?
How can I check Maven dependencies for CVE-2020-11007?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w8rc-pgxq-x2cj",
"modified" : "2021-01-08T21:09:16Z",
"published" : "2020-04-22T20:59:26Z",
"aliases" : [ "CVE-2020-11007" ],
"summary" : "Negative charge in shopping cart in Shopizer",
"details" : "### Impact\nUsing API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total. \n\n### Patches\nAdding a back-end verification to check that quantity parameter isn't negative. If so, it is set to 1. Patched in 2.11.0\n\n### Workarounds\nWithout uprading, it's possible to just apply the fixes in the same files it's done for the patch. Or you use javax constraint validation on the quantity parameter.\n\n### References\n[Input Validation](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n[Using bean validation constraint](https://javaee.github.io/tutorial/bean-validation002.html)\n[Commits with fixes](https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a)\nCVE Details below : \n[Mitre](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11007)\n[NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-11007)\n\n### Credits\nFound and solved by Yannick Gosset from Aix-Marseille University cybersecurity\nmaster program supervised by Yassine Ilmi ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.shopizer:sm-core-model"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.11.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/shopizer-ecommerce/shopizer/security/advisories/GHSA-w8rc-pgxq-x2cj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11007"
}, {
"type" : "WEB",
"url" : "https://github.com/shopizer-ecommerce/shopizer/commit/929ca0839a80c6f4dad087e0259089908787ad2a"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-04-16T18:16:42Z",
"nvd_published_at" : null
}
}