CVE-2018-11494: Opencart/opencart Path Traversal Vulnerability
HIGHCVE-2018-11494 is a HIGH (CVSS 8.0) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Opencart/opencart libraries in the Packagist ecosystem. The issue involves opencart path traversal. Remediation is available in the latest vendor maintenance releases.
CVE-2018-11494 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2018-11494
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 Latest secure release
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-2018-11494, 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 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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-2018-11494 Affected Opencart/opencart Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
opencart/opencart
|
Packagist |
≤ 3.0.2.0
|
|
References
Frequently Asked Questions
What is CVE-2018-11494?
Which Opencart/opencart versions are affected?
What version fixes CVE-2018-11494?
Is opencart/opencart affected?
What is the CVSS score of CVE-2018-11494?
What CWE is associated with CVE-2018-11494?
How can I check Packagist dependencies for CVE-2018-11494?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wx3q-f5f2-4q8v",
"modified" : "2024-04-23T17:28:19Z",
"published" : "2022-05-14T03:15:27Z",
"aliases" : [ "CVE-2018-11494" ],
"summary" : "OpenCart Path Traversal",
"details" : "The \"program extension upload\" feature in OpenCart through 3.0.2.0 has a six-step process (upload, install, unzip, move, xml, remove) that allows attackers to execute arbitrary code if the remove step is skipped, because the attacker can discover a secret temporary directory name (containing 10 random digits) via a directory traversal attack involving language_info['code'].",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "opencart/opencart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11494"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencart/opencart"
}, {
"type" : "WEB",
"url" : "http://www.bigdiao.cc/2018/05/24/Opencart-v3-0-2-0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-23T17:28:19Z",
"nvd_published_at" : "2018-05-26T20:29:00Z"
}
}