Description
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.
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The OpenCart v4.2.0.0 extension installer extracts uploaded ZIP package contents without ensuring that extraction paths stay within the intended directory. An attacker can embed traversal sequences, such as '..\', in a malicious extension file. When the installer processes the payload, it will create files outside the extension directory, including the webroot, allowing the attacker to place a PHP web shell and then execute arbitrary code on the server.

Affected Systems

OpenCart software, version 4.2.0.0. No other versions are explicitly listed as affected, so the issue applies only to this specific release.

Risk and Exploitability

The likely attack vector is uploading a crafted extension through the extension upload interface, which requires privileged or administrative access. No CVSS score is provided, and EPSS data is unavailable, but the ability to write executable files in the webroot can lead to full site compromise. The CISA KEV catalog does not list this vulnerability, yet the potential impact is significant enough to warrant immediate attention.

Generated by OpenCVE AI on August 10, 2026 at 18:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OpenCart to a version that includes the directory‑traversal fix.
  • If an upgrade cannot be performed quickly, restrict the extension upload capability to a small set of trusted administrators and disable it for all other users.
  • Implement server‑side path validation for any extension extraction process, ensuring no files are written outside the intended directory.
  • Configure the webroot and extension staging directories with restrictive permissions to prevent execution of newly written PHP files or other dangerous content.

Generated by OpenCVE AI on August 10, 2026 at 18:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Tue, 11 Aug 2026 04:15:00 +0000

Type Values Removed Values Added
First Time appeared Opencart
Opencart opencart
Vendors & Products Opencart
Opencart opencart

Mon, 10 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Mon, 10 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Description 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.
Title The OpenCart v4.2.0.0 extension installer contains a directory traversal vulnerability
References

Subscriptions

Opencart Opencart
cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-08-10T16:17:43.178Z

Reserved: 2026-07-30T17:19:22.540Z

Link: CVE-2026-18412

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T04:00:07Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')