CVE-2025-8311
BaseFortify
Publication date: 2025-09-04
Last updated on: 2025-09-11
Assigner: dotCMS LLC
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| dotcms | dotcms | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a Boolean-based blind SQL injection in dotCMS versions 24.03.22 and later, specifically in the /api/v1/contenttype endpoint. It occurs because the 'sites' query parameter is directly concatenated into a SQL query without proper sanitization. An authenticated attacker with low privileges can exploit this to extract data from the database, escalate privileges, or cause denial-of-service conditions.
How can this vulnerability impact me? :
Exploitation of this vulnerability can allow an attacker with low privileges to extract sensitive data from the database, escalate their privileges within the system, or cause denial-of-service conditions, potentially disrupting service availability.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
Detection can be performed by testing the /api/v1/contenttype endpoint's sites parameter for SQL injection vulnerabilities. Tools like SQLMap have been used to verify this vulnerability. You can run a command similar to: sqlmap -u "http://<target>/api/v1/contenttype?sites=1" --cookie="<authentication_cookie>" --technique=B --level=5 --risk=3 to test for Boolean-based blind SQL injection. Ensure you have proper authorization before testing.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include upgrading dotCMS to one of the fixed versions: 25.08.14, 25.07.10-1v2 LTS, 24.12.27v10 LTS, or 24.04.24v21 LTS. Additionally, restrict access to the /api/v1/contenttype endpoint to trusted users only, monitor for suspicious activity, and apply web application firewall (WAF) rules to detect and block SQL injection attempts targeting the sites parameter.