CVE-2026-18412 The OpenCart v4.2.0.0 extension installer contains a directory traversal vulnerability
An attacker can upload a malicious extension to write files like web shells into the webroot, enabling remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-18412?
CVE-2026-18412 is a critical path traversal vulnerability in OpenCart, published on 10 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-18412?
How do I fix CVE-2026-18412?
No fix has been published for CVE-2026-18412 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-18412 being exploited?
There is no known exploitation of CVE-2026-18412 in the wild and no public exploit code.
Sources
Also known as GHSA-3rx6-2g27-8gfq.