Vulnerabilities in pkg:golang/github.com/NietThijmen/ShoppingCart

PACKAGE
Advisory Identifier: GHSA-ggmw-mjhv-75rm
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/NietThijmen/ShoppingCart

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/NietThijmen/ShoppingCart. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-ggmw-mjhv-75rm CVE-2024-53412 HIGH NietThijmen ShoppingCart: Command injection in the connect function

CVE-2024-53412 at a Glance

CVE Identifier CVE-2024-53412
GHSA Identifier GHSA-ggmw-mjhv-75rm
Severity HIGH
CVSS v3.1 Base Score 8.4
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product NietThijmen ShoppingCart
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/NietThijmen/ShoppingCart fixed: Latest secure release
Upgrade github.com/NietThijmen/ShoppingCart to Latest secure release
Verify Direct and Transitive Dependencies

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

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

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?
CVE-2024-53412 is a security vulnerability in NietThijmen ShoppingCart involving Command injection in the connect function under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which NietThijmen ShoppingCart versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/NietThijmen/ShoppingCart.
What version fixes CVE-2024-53412?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/NietThijmen/ShoppingCart affected?
Yes, github.com/NietThijmen/ShoppingCart is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-53412?
CVE-2024-53412 has a CVSS v3.1 base score of 8.4 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-53412?
CVE-2024-53412 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (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.).
How can I check Go dependencies for CVE-2024-53412?
Run the dependency tree command: 'inspect dependencies for github.com/NietThijmen/ShoppingCart'. 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-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"
  }
}