CVE-2018-20465 Craft CMS Vulnerable to Server-Side Template Injection

High 7.2 Published Updated

Authenticated administrators can exploit server-side template injection to read sensitive database credentials from configuration settings.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-20465?

CVE-2018-20465 is a high-severity code injection vulnerability in Craftcms Craft Cms, published on 25 Dec 2018. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-311

Which versions are affected by CVE-2018-20465?

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

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

Products include Craftcms Craft Cms.

How do I fix CVE-2018-20465?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-20465 being exploited?

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

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-j7fx-v37j-v3w7.

Is CVE-2018-20465 in your software?

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

Check your SBOMs for free