CVE-2026-18412: The OpenCart v4.2.0.0 extension installer contains a directory traversal vulnerability
OpenCart extensions are uploaded as zip files with .ocmod.zip extensions. Upon installation, the OpenCart v4.2.0.0 extension installer extracts these zip files, but does not validate that the extracted paths stay inside the intended extraction directory. An attacker can craft a malicious extension containing file path traversal sequences, such as ../. With this vulnerability, an attacker can write files, such as a PHP web shell, into the webroot directory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OpenCart extension installerto a version that resolves this vulnerability.Fixed in 4.2.0.0 - Compensating control
Apply an upload restriction/segmentation control so untrusted users cannot upload/trigger installation of OpenCart extensions (e.g., restrict access to the extension installer/admin upload functionality to trusted IPs/users only).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-18412?
CVE-2026-18412 is classified with a risk score of 76, indicating a significant vulnerability.
What are the implications of CVE-2026-18412?
CVE-2026-18412 may allow attackers to execute malicious files outside the intended directory, leading to potential system compromise.
How do I fix CVE-2026-18412?
To fix CVE-2026-18412, ensure that you update OpenCart to the latest version that includes a patch for this directory traversal vulnerability.
Who is affected by CVE-2026-18412?
CVE-2026-18412 affects users of OpenCart version 4.2.0.0 who utilize the extension installer for uploading and installing extensions.
What steps should I take if I cannot update due to compatibility issues with CVE-2026-18412?
If you cannot update OpenCart due to compatibility issues, review and restrict permissions on directory paths to mitigate risks associated with CVE-2026-18412.