CVE-2018-25270

Source
https://cve.org/CVERecord?id=CVE-2018-25270
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25270.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-25270
Published
2026-04-22T16:16:47.770Z
Modified
2026-07-08T16:40:47.987470Z
Severity
  • 9.3 (Critical) CVSS_V4 - 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
[none]
Details

ThinkPHP 5.0.23 contains a remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by invoking functions through the routing parameter. Attackers can craft requests to the index.php endpoint with malicious function parameters to execute system commands with application privileges.

References

Affected packages

Git / github.com/top-think/framework

Affected ranges

Type
GIT
Repo
https://github.com/top-think/framework
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:thinkphp:thinkphp:5.1.31:*:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "5.0.0"
        },
        {
            "fixed": "5.0.23"
        },
        {
            "introduced": "5.1.31"
        },
        {
            "last_affected": "5.1.31"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ]
}

Affected versions

5.*
5.0
5.0.10
5.1.31
v5.*
v5.0.0
v5.0.1
v5.0.10
v5.0.11
v5.0.12
v5.0.13
v5.0.14
v5.0.15
v5.0.16
v5.0.17
v5.0.18
v5.0.19
v5.0.2
v5.0.20
v5.0.21
v5.0.22
v5.0.3
v5.0.4
v5.0.5
v5.0.6
v5.0.7
v5.0.8
v5.0.9
v5.1.31

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25270.json"