CVE-2020-25540: Zoujingli/thinkadmin Path Traversal Vulnerability
HIGHCVE-2020-25540 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Zoujingli/thinkadmin libraries in the Packagist ecosystem. The issue involves thinkadmin directory traversal vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2020-25540 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2020-25540
To remediate this vulnerability, upgrade all affected Zoujingli/thinkadmin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade zoujingli/thinkadmin to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zoujingli/thinkadmin
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-25540, inspect your project dependencies for Zoujingli/thinkadmin:
inspect dependencies for zoujingli/thinkadmin
Analyze the terminal output to locate any version of Zoujingli/thinkadmin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Zoujingli/thinkadmin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-25540 Affected Zoujingli/thinkadmin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zoujingli/thinkadmin
|
Packagist |
6.0
All 1 versions
6.0
|
None specified
|
References
Frequently Asked Questions
What is CVE-2020-25540?
Which Zoujingli/thinkadmin versions are affected?
What version fixes CVE-2020-25540?
Is zoujingli/thinkadmin affected?
What is the CVSS score of CVE-2020-25540?
What CWE is associated with CVE-2020-25540?
How can I check Packagist dependencies for CVE-2020-25540?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2qm5-r82g-5hcx",
"modified" : "2025-05-15T21:16:57Z",
"published" : "2022-05-24T17:28:15Z",
"aliases" : [ "CVE-2020-25540" ],
"summary" : "ThinkAdmin directory traversal vulnerability",
"details" : "ThinkAdmin v6 is affected by a directory traversal vulnerability. An unauthorized attacker can read arbitrarily file on a remote server via GET request encode parameter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zoujingli/thinkadmin"
},
"versions" : [ "6.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-25540"
}, {
"type" : "WEB",
"url" : "https://github.com/zoujingli/ThinkAdmin/issues/244"
}, {
"type" : "WEB",
"url" : "https://github.com/zoujingli/ThinkAdmin/commit/ff2ab47cfabd4784effbf72a2a386c5d25c43a9a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zoujingli/ThinkAdmin"
}, {
"type" : "WEB",
"url" : "https://wtfsec.org/posts/thinkadmin-v6-%E5%88%97%E7%9B%AE%E5%BD%95-%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/159177/ThinkAdmin-6-Arbitrary-File-Read.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T19:03:52Z",
"nvd_published_at" : "2020-09-14T13:15:00Z"
}
}