# CVE-2026-51077: DedeCMS SQL injection in sys_sql_query.php

Source: https://junglewise.ai/threats/cve-2026-51077-dedecms-sql-injection-in-sys-sql-query-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-27. Updated: 2026-07-27  
License: CC BY 4.0 with a link back

CVE-2026-51077 · Severity: info · CVSS 0 · Published 2026-07-27

DedeCMS, a popular content management system, contains a security vulnerability in its SQL Command Line Tool. An attacker with access to the administrative backend can execute unauthorized database commands to steal sensitive information, such as administrator credentials, or delete critical website data. This could lead to a complete takeover of the website or permanent loss of business information.

Technologies: [DedeCMS](https://junglewise.ai/threats/technologies/dedecms). Vendors: [DedeCMS](https://junglewise.ai/threats/vendors/dedecms).

## Quick answers

**Is CVE-2026-51077 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51077 being exploited in the wild.

**How severe is CVE-2026-51077?** Informational severity, with a CVSS score of 0, published 27 July 2026.

**Which products and versions are affected?** DedeCMS <= V5.7.118.

**Is there a fix for CVE-2026-51077?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51077 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-51077?** Check whether you run DedeCMS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in the 'sqlquery' parameter of the 'sys_sql_query.php' component in DedeCMS <= V5.7.118. The vulnerability arises because the 'safeCheck' security mechanism, intended to block dangerous SQL operations like data deletion, is explicitly disabled (set to FALSE) in the '/dede/config.php' configuration file. An authenticated attacker can bypass intended restrictions by using error-based SQL injection techniques (e.g., using extractvalue) or by creating malicious database triggers to perform unauthorized data exfiltration or deletion. The backend executes these commands via the ExecuteNoneQuery function in the DedeSqlite/mysqli class without sufficient sanitization.

## Affected products

- DedeCMS DedeCMS <= V5.7.118

## Timeline

- 2026-07-27: disclosed: Initial disclosure and CVE assignment
- 2026-07-27: advisory: NVD publication date

## References

- [https://gitee.com/etera1i2e/cve-2026-51077/blob/master/README.md](https://gitee.com/etera1i2e/cve-2026-51077/blob/master/README.md)
- [https://www.dedecms.com/](https://www.dedecms.com/)

## Related threats

- [DedeCMS local file inclusion in carbuyaction.php](https://junglewise.ai/threats/cve-2010-20125-dedecms-before-5-7-contains-a-file-inclusion-vulnerability-in)
- [DedeCMS advertisement rendering code injection in aid parameter](https://junglewise.ai/threats/cve-2026-116253-a-vulnerability-was-determined-in-dedecms-5-7-118-this)
- [DedeCMS PHP code injection in ShowMsg](https://junglewise.ai/threats/cve-2021-48016-dedecms-through-5-8-1-beta-contains-a-php-code-injection)
- [DedeCMS reflected cross-site scripting in config.php](https://junglewise.ai/threats/cve-2014-125131-dedecms-5-6-and-5-7-contains-a-reflected-cross-site-scripting)
- [DedeCMS code injection in plus/mytag_js.php](https://junglewise.ai/threats/cve-2026-94004-a-vulnerability-was-found-in-dedecms-up-to-5-7-118-the-affected)
