Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-25270
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:36 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-25270
Complete source record
{
"id": "8ad0f49320da06c27d50ed4c0fe93024034d1b94747a821e6cf2752914233ee4",
"url": "https://osv.dev/vulnerability/CVE-2018-25270",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-25270",
"summary": "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.",
"evidence": "osv:CVE-2018-25270",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-25270",
"aliases": [
"CVE-2018-25270"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/top-think/framework",
"type": "GIT",
"events": [
{
"introduced": "4115408538b566d795d621385f9c293f026fb3f4"
},
{
"fixed": "4cbc0b5e93314446243ebc7d5f005f9c32864737"
},
{
"introduced": "adde39c236cfeda454fe725d999d89abf67b8caf"
},
{
"last_affected": "adde39c236cfeda454fe725d999d89abf67b8caf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.23"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:thinkphp:thinkphp:5.1.31:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1.31"
},
{
"last_affected": "5.1.31"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"5.1.31",
"v5.1.31",
"v5.0.22",
"v5.0.21",
"v5.0.20",
"v5.0.19",
"v5.0.18",
"v5.0.17",
"v5.0.16",
"v5.0.15",
"v5.0.14",
"v5.0.13",
"v5.0.12",
"v5.0.11",
"v5.0.10",
"5.0.10",
"v5.0.9",
"v5.0.8",
"v5.0.7",
"v5.0.6",
"v5.0.5",
"v5.0.4",
"v5.0.3",
"v5.0.2",
"v5.0.1",
"v5.0.0",
"5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25270.json"
}
}
],
"modified": "2026-10-24T10:47:40.288250880Z",
"provider": "osv",
"references": [
"https://github.com/top-think/framework/",
"https://thinkphp.cn",
"https://www.vulncheck.com/advisories/thinkphp-remote-code-execution-via-invokefunction",
"https://www.exploit-db.com/exploits/45978"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*"
],
"vendor_product": "thinkphp:thinkphp",
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.23"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:thinkphp:thinkphp:5.1.31:*:*:*:*:*:*:*"
],
"vendor_product": "thinkphp:thinkphp",
"extracted_events": [
{
"range": [
{
"introduced": "5.1.31"
},
{
"last_affected": "5.1.31"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-25270",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 441453,
"published_at": "2026-04-22T16:16:47.77+00:00"
}