CVE-2023-2315: Opencart/opencart Path Traversal Vulnerability
HIGHCVE-2023-2315 is a HIGH (CVSS 8.1) path traversal vulnerability (CWE-20: Improper Input Validation) affecting Opencart/opencart libraries in the Packagist ecosystem. The issue involves opencart path traversal vulnerability. Remediation is available by upgrading affected packages to version 4.0.2.3.
CVE-2023-2315 at a Glance
Security Impact
CVSS: 8.1
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:H).
How to Fix CVE-2023-2315
To remediate this vulnerability, upgrade all affected Opencart/opencart 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 opencart/opencart to 4.0.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for opencart/opencart
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-2315, inspect your project dependencies for Opencart/opencart:
inspect dependencies for opencart/opencart
Analyze the terminal output to locate any version of Opencart/opencart in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.2.3), 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-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 Opencart/opencart, 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-2023-2315 Affected Opencart/opencart Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
opencart/opencart
|
Packagist |
≥ 4.0.0.0
< 4.0.2.3
|
4.0.2.3
|
References
Frequently Asked Questions
What is CVE-2023-2315?
Which Opencart/opencart versions are affected?
What version fixes CVE-2023-2315?
Is opencart/opencart affected?
What is the CVSS score of CVE-2023-2315?
What CWE is associated with CVE-2023-2315?
How can I check Packagist dependencies for CVE-2023-2315?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v4j2-cwmm-xg89",
"modified" : "2023-09-27T20:16:23Z",
"published" : "2023-09-27T15:30:34Z",
"aliases" : [ "CVE-2023-2315" ],
"summary" : "OpenCart Path Traversal vulnerability",
"details" : "Path Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2 allows an authenticated user with access/modify privilege on the Log component to empty out arbitrary files on the server",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "opencart/opencart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0.0"
}, {
"fixed" : "4.0.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2315"
}, {
"type" : "WEB",
"url" : "https://github.com/opencart/opencart/commit/0a8dd91e385f70e42795380009fd644224c1bc97"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencart/opencart"
}, {
"type" : "WEB",
"url" : "https://github.com/opencart/opencart/releases/tag/4.0.2.3"
}, {
"type" : "WEB",
"url" : "https://starlabs.sg/advisories/23/23-2315"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-27T20:16:23Z",
"nvd_published_at" : "2023-09-27T15:18:50Z"
}
}