CVE-2018-3814 Craft CMS PHP Code Injection Vulnerability

High 8.8 Published Updated

Remote attackers can execute arbitrary PHP code by uploading a malicious file disguised as an image and renaming it via the asset replacement feature.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-3814?

CVE-2018-3814 is a high-severity vulnerability in Craftcms Craft Cms, published on 1 Jan 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Craft CMS 2.6.3000 allows remote attackers to execute arbitrary PHP code by using the "Assets->Upload files" screen and then the "Replace it" option, because this allows a .jpg file to have embedded PHP code, and then be renamed to a .php extension.

Weakness: CWE-434

Which versions are affected by CVE-2018-3814?

2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.

PackageAffectedFixed in
craftcms/cms PackagistAll versions to 2.6.3000None
craftcms/cms PackagistAll versions to 2.6.3000None

Products include Craftcms Craft Cms.

How do I fix CVE-2018-3814?

No fix has been published for CVE-2018-3814 yet. Limit exposure of the affected software until one is available.

Is CVE-2018-3814 being exploited?

There is no known exploitation of CVE-2018-3814 in the wild and no public exploit code.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-r342-vjc4-wrmj.

Is CVE-2018-3814 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free