---
id: "CVE-2010-20125"
kind: "vulnerability"
aliases: ["CVE-2010-20125"]
title: "DedeCMS: unauthenticated file inclusion in carbuyaction.php exposes local files"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["dedecms", "php", "runtime", "self-hosted"]
not_affected_if: ["dedecms-5.7-or-later", "endpoint-blocked"]
published_at: "2026-10-30T15:16:43+00:00"
first_seen_at: "2026-10-30T15:31:09+00:00"
updated_at: "2026-10-30T15:33:16+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2010-20125", "first_seen_at": "2026-10-30T15:31:09+00:00"}]
---

# DedeCMS: unauthenticated file inclusion in carbuyaction.php exposes local files

DedeCMS before 5.7 lets a remote, unauthenticated visitor control the path passed to require_once in plus/carbuyaction.php through the code parameter. Using ../../ sequences, an attacker can include and read arbitrary local files outside the payment directory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for `plus/carbuyaction.php` in the DedeCMS install directory
- Check the DedeCMS version in the admin panel or the version file; the sources do not give the exact version string to match

## Fix

- DedeCMS: move to `5.7` or later (sources state versions before 5.7 are affected)

## Timeline

- 2026-10-30T15:31:09+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2010-20125

## From the sources

DedeCMS before 5.7 contains a file inclusion vulnerability in plus/carbuyaction.php that allows remote unauthenticated attackers to control the include path by manipulating the uninitialized code parameter passed to require_once. Attackers can supply path traversal sequences ../../ to include arbitrary local files outside the intended payment directory, potentially achieving local file disclosure. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-18.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
