CVE-2018-20465
HIGH 7.2CVSS 3.0Craft CMS Vulnerable to Server-Side Template Injection
Craft CMS through 3.0.34 allows remote authenticated administrators to read sensitive information via server-side template injection, as demonstrated by a {% string for craft.app.config.DB.user and craft.app.config.DB.password in the URI Format of the Site Settings, which causes a cleartext username and password to be displayed in a URI field.
- Published
- 25 Dec 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1336CWE-311
- Also known as
- GHSA-j7fx-v37j-v3w7
- Sources
- NVDJSONOSV GHSA-j7fx-v37j-v3w7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.2 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.2 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
<= 3.0.34 | |
| OSV | Packagist | craftcms/cms | <= 3.0.34 |
References
- https://github.com/craftcms/cms/blob/master/CHANGELOG-v3.md · Release Notes, WEB
- https://github.com/phuctam/Server-Side-Template-Injection-in-CraftCMS-/issues/1 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20465 · ADVISORY
- https://github.com/craftcms/cms · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 25 Dec 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 13 May 2022)