---
title: "CVE-2021-48016: DedeCMS - Command Injection"
description: "DedeCMS through 5.8.1-beta contains a command injection caused by unsanitized HTTP Referer header in ShowMsg() function, letting unauthenticated attackers execute arbitrary PHP and system commands remotely, exploit requires crafted Referer header."
url: https://panop.io/threat-heartbeat/CVE-2021-48016/
---

# CVE-2021-48016 DedeCMS - Command Injection

DedeCMS through 5.8.1-beta contains a command injection caused by unsanitized HTTP Referer header in ShowMsg() function, letting unauthenticated attackers execute arbitrary PHP and system commands remotely, exploit requires crafted Referer header.

CVSS base score 9.8 /10

Critical

CISA KEV

Exploited in the wild

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2021-48016)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Published

22 October 2026

Updated

23 October 2026

Weakness

[CWE-94](https://cwe.mitre.org/data/definitions/94.html)

## Vendor fix

Update to the latest version beyond 5.8.1-beta.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2021-48016](https://nvd.nist.gov/vuln/detail/CVE-2021-48016)
- [https://www.cve.org/CVERecord?id=CVE-2021-48016](https://www.cve.org/CVERecord?id=CVE-2021-48016)
- [https://github.com/dedecms/DedeCMS/blob/v5.8.1/include/common.func.php](https://github.com/dedecms/DedeCMS/blob/v5.8.1/include/common.func.php)
- [https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/dedecms/dedecms-rce.yaml](https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/dedecms/dedecms-rce.yaml)
- [https://srcincite.io/blog/2021/09/30/chasing-a-dream-pwning-the-biggest-cms-in-china.html](https://srcincite.io/blog/2021/09/30/chasing-a-dream-pwning-the-biggest-cms-in-china.html)
- [https://www.vulncheck.com/advisories/dedecms-5.8.1-beta-unauthenticated-rce-via-plus-flink-php](https://www.vulncheck.com/advisories/dedecms-5.8.1-beta-unauthenticated-rce-via-plus-flink-php)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
