CVE-2024-53412: NietThijmen ShoppingCart Command Injection Vulnerability
HIGHCVE-2024-53412 is a HIGH (CVSS 8.4) command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting NietThijmen ShoppingCart libraries in the Go ecosystem. The issue involves command injection in the connect function. Remediation is available in the latest vendor maintenance releases.
CVE-2024-53412 at a Glance
Security Impact
CVSS: 8.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-53412
To remediate this vulnerability, upgrade all affected NietThijmen ShoppingCart dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/NietThijmen/ShoppingCart to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/NietThijmen/ShoppingCart
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-53412, inspect your project dependencies for NietThijmen ShoppingCart:
inspect dependencies for github.com/NietThijmen/ShoppingCart
Analyze the terminal output to locate any version of NietThijmen ShoppingCart 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: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In NietThijmen ShoppingCart, 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-2024-53412 Affected NietThijmen ShoppingCart Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/NietThijmen/ShoppingCart
|
Go |
≤ 0.0.0-20241101155353-3dd137080276
|
|
References
Frequently Asked Questions
What is CVE-2024-53412?
Which NietThijmen ShoppingCart versions are affected?
What version fixes CVE-2024-53412?
Is github.com/NietThijmen/ShoppingCart affected?
What is the CVSS score of CVE-2024-53412?
What CWE is associated with CVE-2024-53412?
How can I check Go dependencies for CVE-2024-53412?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ggmw-mjhv-75rm",
"modified" : "2026-07-21T14:48:53Z",
"published" : "2026-04-15T15:31:43Z",
"aliases" : [ "CVE-2024-53412" ],
"summary" : "NietThijmen ShoppingCart: Command injection in the connect function",
"details" : "Command injection in the connect function in NietThijmen ShoppingCart 0.0.2 allows an attacker to execute arbitrary shell commands and achieve remote code execution via injection of malicious payloads into the Port field",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/NietThijmen/ShoppingCart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.0.0-20241101155353-3dd137080276"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53412"
}, {
"type" : "WEB",
"url" : "https://github.com/NietThijmen/ShoppingCart/issues/1"
}, {
"type" : "WEB",
"url" : "https://github.com/Buckdray/vulnerability-research/blob/main/CVE-2024-53412/README.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/NietThijmen/ShoppingCart"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-ggmw-mjhv-75rm"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T21:26:36Z",
"nvd_published_at" : "2026-04-15T15:16:39Z"
}
}