Summary
CVE-2010-20125 is a file inclusion vulnerability (CWE-98) in DedeCMS versions before 5.7. An unauthenticated remote attacker can use path traversal in the code parameter of plus/carbuyaction.php to include arbitrary local files, which can disclose sensitive data. The CVE record rates it High, with a CVSS v4.0 score of 8.7.
Technical details
- Root cause:
plus/carbuyaction.phppasses an uninitializedcodeparameter torequire_once, so the include path is attacker-controlled. - Trigger conditions: The attacker sends a request with path traversal sequences (
../../) incode. No authentication or user interaction is required. - Attack vector: Network, low complexity.
- Impact: Files outside the intended payment directory can be included, which can disclose sensitive local files (high confidentiality impact).
- Exploitation: The CVE record reports that the Shadowserver Foundation first observed exploitation on October 18, 2023.
Affected software
- DedeCMS: all versions before 5.7
Severity
- CVSS v4.0: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: upgrade DedeCMS to version 5.7 or later, which fixes the issue.
- If you cannot upgrade immediately, restrict or block external access to
plus/carbuyaction.php, for example with web server rules or a WAF. Review web logs for requests to this file that contain../sequences in thecodeparameter.

