{"answers":{"affected":"2 open source packages ship an affected version, including zoujingli/thinkadmin. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-25540 exists.","fix":"No fix has been published for CVE-2020-25540 yet. Limit exposure of the affected software until one is available.","what":"CVE-2020-25540 is a high-severity path traversal vulnerability in n/a, published on 14 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-25540 and fix it if it is affected.\n\nWhat it is: CVE-2020-25540 is a high-severity path traversal vulnerability in n/a, published on 14 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-25540 exists.\n\nAffected packages and fixed versions:\n- zoujingli/thinkadmin (Packagist): affected all versions; no fix listed\n- zoujingli/thinkadmin (Packagist): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-25540/ (Markdown: https://insights.sbomify.com/CVE-2020-25540/index.md)","id":"CVE-2020-25540","markdown":"https://insights.sbomify.com/CVE-2020-25540/index.md","name":"CVE-2020-25540","record":{"aliases":["GHSA-2qm5-r82g-5hcx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"ThinkAdmin PHP framework","requires_auth":"none","summary":"An unauthorized attacker can read arbitrary files on the remote server via a directory traversal vulnerability in ThinkAdmin.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"thinkadmin","vendor":"thinkadmin"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":1,"first_seen":"2020-09-15","github_poc":4,"max_poc_stars":7,"metasploit":0,"nuclei":1,"refs":[{"date":"2020-10-19T09:56:20Z","kind":"github_poc","ref":"https://github.com/Schira4396/CVE-2020-25540","stars":7,"title":"ThinkAdmin CVE-2020-25540 poc"},{"date":"2020-09-15","kind":"exploitdb","ref":"48812","stars":null,"title":"ThinkAdmin 6 -  Arbitrarily File Read"},{"date":"2022-03-09T13:08:31Z","kind":"github_poc","ref":"https://github.com/RajChowdhury240/ThinkAdmin-CVE-2020-25540","stars":0,"title":"ThinkAdmin CVE-2020-25540 POC"},{"date":"2022-05-10T02:33:46Z","kind":"github_poc","ref":"https://github.com/lowkey0808/cve-2020-25540","stars":0,"title":null},{"date":"2024-07-11T07:59:52Z","kind":"github_poc","ref":"https://github.com/simonlee-hello/CVE-2020-25540","stars":0,"title":"ThinkAdmin v5 v6 任意文件读取漏洞利用，可自定义字典爆破"},{"date":null,"kind":"nuclei","ref":"http/cves/2020/CVE-2020-25540.yaml","stars":null,"title":"ThinkAdmin 6 - Local File Inclusion"}],"tier":"weaponised"},"has_fix":false,"headline":"ThinkAdmin directory traversal vulnerability","id":"CVE-2020-25540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":2,"n_references":3,"next":{"headline":"Code injection in n/a","id":"CVE-2020-25557"},"packages":[{"ecosystem":"Packagist","fixed":[],"introduced":[],"last_affected":[],"package":"zoujingli/thinkadmin","purl":null,"source":"GHSA-2qm5-r82g-5hcx"},{"ecosystem":"Packagist","fixed":[],"introduced":[],"last_affected":[],"package":"zoujingli/thinkadmin","purl":"pkg:composer/zoujingli/thinkadmin","source":"GHSA-2qm5-r82g-5hcx"}],"prev":{"headline":"Code injection in n/a","id":"CVE-2020-25538"},"products":["n/a"],"published":"2020-09-14","related":[{"cvss_score":9.8,"headline":"ThinkAdmin insecure unserialize vulnerability","id":"CVE-2020-23653","kev_date_added":null,"published":"2021-01-13"},{"cvss_score":9.8,"headline":"ThinkAdmin Administrator cookies still working after password change","id":"CVE-2019-11018","kev_date_added":null,"published":"2019-04-08"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2023-48965","kev_date_added":null,"published":"2023-12-04"},{"cvss_score":8.8,"headline":"ThinkAdmin arbitrary file upload vulnerability","id":"CVE-2023-48966","kev_date_added":null,"published":"2023-12-04"},{"cvss_score":7.5,"headline":"ThinkAdmin Admin Panel Access using Default Credentials","id":"CVE-2020-35296","kev_date_added":null,"published":"2021-03-03"},{"cvss_score":6.1,"headline":"File upload in n/a","id":"CVE-2023-34833","kev_date_added":null,"published":"2023-06-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An unauthorized attacker can read arbitrary files on the remote server via a directory traversal vulnerability in ThinkAdmin.","url":"https://insights.sbomify.com/CVE-2020-25540/"}