CVE-2026-18412: The OpenCart v4.2.0.0 extension installer contains a directory traversal vulnerability

Published Aug 10, 2026
·
Updated

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

1 affected component
OpenCart OpenCart=4.2.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenCart extension installer to a version that resolves this vulnerability.

    Fixed in 4.2.0.0
  2. 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

Aug 10, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18412?

CVE-2026-18412 is classified with a risk score of 76, indicating a significant vulnerability.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203