8.8high

CVE-2018-3814

Craft CMS PHP Code Injection Vulnerability

Also known as GHSA-r342-vjc4-wrmj

Published 8 y ago · modified 4 mo ago · JSON

CVSS
8.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.9%
percentile 80%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

1.88% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.08.8CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD2.06.5AV:N/AC:L/Au:S/C:P/I:P/A:P
GitHub3.08.8CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
packagistcraftcms/cms
<=2.6.3000
no fix listed

Classification

Weakness
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

  • github.com /Snowty/myCVE/blob/master/CraftCMS-2.6.3000/README.md · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-3814 · advisory
  • github.com /craftcms/cms · package
  • web.archive.org /web/20170612231205/http://0day5.com/archives/4122 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.