Summary
CVE-2021-48016 is a critical PHP code injection vulnerability in DedeCMS through version 5.8.1-beta. Unauthenticated remote attackers can use it to execute arbitrary PHP code and system commands. The CVE record lists a CVSS v4.0 score of 9.3 (Critical) and a CVSS v3.1 score of 9.8 (Critical). The record notes that exploitation was first documented by the Shadowserver Foundation on October 14, 2023.
Technical details
- Root cause: the
ShowMsg()function incorporates the HTTP Referer header into DedeTemplate strings, which allows PHP code injection. - Trigger conditions: a request to
/plus/flink.php?dopost=savewith an empty validation code and a crafted Referer header. - Attack vector: network, with no authentication and no user interaction required.
- Impact: execution of arbitrary PHP code and system commands on the server, with high impact to confidentiality, integrity and availability.
Affected software
- DedeCMS, all versions through 5.8.1-beta.
Severity
- CVSS v4.0: 9.3 (Critical),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 9.8 (Critical),
CVSS:3.1/AV:N/AC:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: the CVE record does not identify a fixed release. Check the DedeCMS project for a release newer than 5.8.1-beta and upgrade if one is available.
- If no patch is available: restrict or block external access to
/plus/flink.php, for example with a WAF or web server rule. Review web logs for requests to/plus/flink.php?dopost=savethat carry unusual Referer headers. Check affected servers for unexpected files and processes.

