CVE-2026-18412

The OpenCart v4.2.0.0 extension installer contains a directory traversal vulnerability

Published Aug 10, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
CWE-22
Type Values Removed Values Added
Weaknesses CWE-22
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Opencart
Opencart opencart
Vendors & Products Opencart
Opencart opencart
Type Values Removed Values Added
Weaknesses CWE-22
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Aug 12, 2026, 3:51 PM
Reserved
Jul 30, 2026, 5:19 PM
Status
Deferred
Published
Aug 10, 2026, 3:17 PM
Modified
Sep 8, 2026, 2:07 PM