CVE-2024-53412 Details
Description
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
A command injection vulnerability has been identified in NietThijmen ShoppingCart version 0.0.2. The issue arises in the 'connect' function within the 'ssh.go' file, where user-supplied input is directly concatenated into an SSH command without proper validation or sanitization. This flaw allows attackers to inject malicious payloads into the 'Port' field when adding a cart item. Once the 'connect' command is executed with the compromised entry, the injected command is executed on the host system, leading to arbitrary command execution.
To address this vulnerability, validate the 'Port' field to ensure it only accepts numeric values within the valid port range of 1 to 65535. Additionally, use the 'exec.Command()' function with separate arguments to construct commands safely, avoiding shell injection risks. It's also important to validate all user input fields against strict allowlists before use.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 15, 2026CISA-ADP
Assessed Apr 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Buckdray/vulnerability-research/blob/main/CVE-2024-53412/README.md | CISA-ADP | ExploitRemedyTechnical Analysis |
| https://github.com/Buckdray/vulnerability-research/blob/main/CVE-2024-53412/README.md | [email protected] | ExploitRemedyTechnical Analysis |
| https://github.com/NietThijmen/ShoppingCart/issues/1 | [email protected] | Broken LinkIssue TrackingVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| NietThijmen ShoppingCart | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 15, 2026 | CVE Modified | CISA-ADP |
| Apr 15, 2026 | New CVE Received | [email protected] |
Volerion