CVE-2023-39650
Description
Theme Volty CMS Blog up to version v4.0.1 was discovered to contain a SQL injection vulnerability via the id parameter at /tvcmsblog/single.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- Theme Volty/CMS Blogdescription
- Range: <=4.0.1
Patches
Vulnerability mechanics
Root cause
"The module improperly neutralizes SQL parameters in the id parameter, allowing for SQL injection."
Attack vector
An unauthenticated attacker can exploit this vulnerability by sending a crafted HTTP request to the `/tvcmsblog/single` endpoint. The vulnerability lies in the handling of the `id` parameter, which is directly incorporated into a SQL query without proper sanitization. By manipulating this parameter, an attacker can inject malicious SQL code to manipulate the database [ref_id=1]. The attack can be concealed within standard HTTP requests, making detection difficult without specific logging configurations [ref_id=1].
Affected code
The vulnerability exists within the `TvcmsBlogSingleModuleFrontController::run()` method in the `tvcmsblog/controllers/front/single.php` file. Specifically, the code responsible for retrieving and processing IP address information from HTTP headers is susceptible to injection.
What the fix does
The patch, applied in version 4.0.2, addresses the SQL injection vulnerability by improving the sanitization of IP address retrieval. The original code directly used potentially untrusted HTTP headers like `CLIENT_IP` and `X_FORWARDED_FOR` in sensitive SQL operations. The updated code ensures that these values are handled more securely, preventing them from being used in a way that could lead to SQL injection [ref_id=1].
Preconditions
- networkThe vulnerable module must be installed and accessible.
- authNo authentication is required to exploit this vulnerability.
- inputThe attacker must be able to send a crafted HTTP request with a malicious `id` parameter.
Generated on Jun 6, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
2News mentions
0No linked articles in our index yet.