CVE-2021-48016: Unauthenticated PHP Code Injection in DedeCMS ShowMsg()
- Vendor
- Dedecms
CVE-2021-48016 is a PHP code injection vulnerability affecting DedeCMS through version 5.8.1-beta. The ShowMsg() function incorporates an attacker-controlled HTTP Referer header into a DedeTemplate string that is subsequently included, allowing injected PHP to execute. An unauthenticated attacker can trigger the vulnerable processing through a crafted request with an empty validation code. Successful exploitation permits arbitrary PHP and system command execution. Exploitation evidence was first observed by the Shadowserver Foundation on October 14, 2023.
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.
Remote, unauthenticated attackers can execute arbitrary PHP code and operating-system commands with the privileges of the application's runtime account. This can compromise application functionality and accessible data, with high confidentiality, integrity, and availability impacts to the affected system.
Mitigation
If you can’t patch tonight, do this now.
As a temporary containment measure, disable the vulnerable friend-link submission functionality or block access to its submission endpoint at the web server or reverse proxy. Restrict network access to affected installations where feasible. These controls reduce exposure but do not correct the code injection flaw.
Remediation
Patch, then assume compromise.
Information identifying a fixed release or vendor-provided patch is currently not available.
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.
References
Frequently asked questions
- Is CVE-2021-48016 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-48016?
- Yes. As of Nov 19, 2026, Mallory has reports of a public exploit for CVE-2021-48016.
- Is there a patch for CVE-2021-48016?
- Information identifying a fixed release or vendor-provided patch is currently not available.
- What products are affected by CVE-2021-48016?
- Dedecms.
- How severe is CVE-2021-48016?
- CVE-2021-48016 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 0.44% (39th percentile) as of Nov 19, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.