CVE-2017-17731: SQL Injection in DedeCMS plus/recommend.php via $_FILES
- Vendor
- Dedecms
DedeCMS through version 5.7 contains a SQL injection vulnerability in the plus/recommend.php script. The vulnerability is triggered by improper sanitization of user-supplied input from the $_FILES superglobal, allowing an attacker to inject arbitrary SQL commands into database queries.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated attacker to execute arbitrary SQL commands against the application's database. This can lead to data leakage, modification, or deletion, and potentially full compromise of the application depending on database privileges.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, restrict access to plus/recommend.php, implement web application firewall (WAF) rules to block malicious payloads, and validate and sanitize all file upload parameters at the application level.
Remediation
Patch, then assume compromise.
Upgrade DedeCMS to a version where this vulnerability is patched. Ensure that all user-supplied input, including data from $_FILES, is properly sanitized and parameterized before being used in SQL queries.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2017-17731 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2017-17731?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2017-17731.
- Is there a patch for CVE-2017-17731?
- Upgrade DedeCMS to a version where this vulnerability is patched. Ensure that all user-supplied input, including data from $_FILES, is properly sanitized and parameterized before being used in SQL queries.
- What products are affected by CVE-2017-17731?
- Dedecms.
- How severe is CVE-2017-17731?
- CVE-2017-17731 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 13.3% (96th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.