CVE-2024-37843
PHP vulnerability analysis and mitigation

Overview

Craft CMS up to version 3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. The vulnerability was assigned CVE-2024-37843 and was disclosed on June 25, 2024. The issue affects Craft CMS installations running versions up to 3.7.31 that have the GraphQL API endpoint enabled (NVD).

Technical details

The vulnerability is a blind time-based SQL injection that can be exploited through the GraphQL API endpoint. The issue stems from insufficient input validation in the orderBy argument, which returns verbose error messages containing full file paths and executed queries. The vulnerability can be triggered by including a backtick character in the query. The attack requires crafting specific queries that can complete the current query without errors while executing injected SQL commands. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) (NVD, Smith Security).

Impact

The vulnerability allows unauthenticated attackers to execute arbitrary SQL commands on the backend database. Since the default MySQL database user in Craft CMS runs as root, attackers could potentially read sensitive data from the database and possibly achieve remote code execution by uploading malicious files such as PHP webshells (Smith Security).

Mitigation and workarounds

The vulnerability has been patched in Craft CMS version 3.7.32. Users running affected versions should upgrade to version 3.7.32 or later to mitigate this vulnerability (Smith Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management