Vulnerability · Published Jun 13, 2023 · Assigned by mitre
CVE-2023-30179
High 7.2
In plain English
A high-severity code injection in the craftcms/cms package (Packagist). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
CraftCMS version 3.7.59 is vulnerable to Server-Side Template Injection (SSTI). An authenticated attacker can inject Twig Template to User Photo Location field when setting User Photo Location in User Settings, lead to Remote Code Execution. NOTE: the vendor disputes this because only Administrators can add this Twig code, and (by design) Administrators are allowed to do that by default.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | craftcms/cms | 4.4.2 | GHSA-3x74-v64j-qc3f |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#442---2023-03-14
- https://datnlq.gitbook.io/cve/craft-cms/cve-2023-30179-server-side-template-injection
- https://github.com/github/advisory-database/pull/2443#issuecomment-1610634200
- https://github.com/github/advisory-database/pull/2443#issuecomment-1610040714