Summary
CVE-2026-51077 is an SQL injection vulnerability (CWE-89) in DedeCMS version 5.7.118. A remote attacker can inject arbitrary SQL through the sqlquery parameter of the sys_sql_query.php component, allowing extraction of sensitive information from the backing database. The issue carries a CVSS v3.1 base score of 7.5 (HIGH) with a network attack vector.
Technical details
- Root cause: Insufficient input neutralization in the
sys_sql_query.phpSQL command-line tool. Per the public proof-of-concept, thesafeCheckvariable in/dede/config.phpis set toFALSE, which disables the security validation that would otherwise be enforced before queries are executed. - Trigger conditions: A crafted SQL payload is supplied via the
sqlqueryparameter to thesys_sql_query.phpcomponent (exposed through the backend "System → SQL Command Line Tool"). Because filtering is bypassed, the statement is passed to the database driver and executed. - Attack vector: Network (remote). The published PoC demonstrates error-based extraction (e.g.,
extractvalue()), which leaks database contents through returned error messages. - Impact: Disclosure of sensitive information from the database (high confidentiality impact). No integrity or availability impact is reflected in the published CVSS vector.
Affected software
- DedeCMS v5.7.118
Severity
- CVSS v3.1 Base Score: 7.5 (HIGH)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: No fixed release has been confirmed for this CVE at the time of writing. Monitor the official DedeCMS site (https://www.dedecms.com/) for a patched version and apply it as soon as it is published.
- If no patch is available:
- Restrict network access to the administrative backend (the
/dede/directory and thesys_sql_query.phpSQL command-line tool), for example via IP allow-listing or authentication at the web-server/WAF layer. - Ensure the
safeChecksecurity check in/dede/config.phpis not disabled. - Disable or remove the SQL command-line tool if it is not required for operations.
- Monitor web and database logs for anomalous
sqlqueryrequests and error-based injection patterns.
- Restrict network access to the administrative backend (the

