{"answers":{"affected":"2 open source packages ship an affected version, including showdoc/showdoc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-0520 exists.","fix":"Upgrade showdoc/showdoc to 2.8.7 or later.","what":"CVE-2025-0520 is a critical vulnerability in ShowDoc, published on 29 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-0520 and fix it if it is affected.\n\nWhat it is: CVE-2025-0520 is a critical vulnerability in ShowDoc, published on 29 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-0520 exists.\n\nAffected packages and fixed versions:\n- showdoc/showdoc (Packagist): affected all versions; fixed in 2.8.7\n- showdoc/showdoc (Packagist): affected all versions; fixed in 2.8.7\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-2025-0520/ (Markdown: https://insights.sbomify.com/CVE-2025-0520/index.md)","id":"CVE-2025-0520","markdown":"https://insights.sbomify.com/CVE-2025-0520/index.md","name":"CVE-2025-0520","record":{"aliases":["GHSA-6jmr-r7p6-f5wr"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"ShowDoc documentation tool","requires_auth":"low_privilege","summary":"Unauthenticated attackers can upload malicious PHP files to execute arbitrary code on ShowDoc servers.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","version":"4.0"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"An unrestricted file upload vulnerability in ShowDoc caused by improper validation of file extension allows execution of arbitrary PHP, leading to remote code execution.This issue affects ShowDoc: before 2.8.7.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-0520.yaml","stars":null,"title":"ShowDoc - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"ShowDoc \u003c 2.8.7 Unauthenticated File Upload Remote Code Execution","id":"CVE-2025-0520","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"file_upload","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"Post SMTP \u003c= 3.0.2 - Unauthenticated Stored Cross-Site Scripting","id":"CVE-2025-0521"},"packages":[{"ecosystem":"Packagist","fixed":["2.8.7"],"introduced":["0"],"last_affected":[],"package":"showdoc/showdoc","purl":null,"source":"GHSA-6jmr-r7p6-f5wr"},{"ecosystem":"Packagist","fixed":["2.8.7"],"introduced":["0"],"last_affected":[],"package":"showdoc/showdoc","purl":"pkg:composer/showdoc/showdoc","source":"GHSA-6jmr-r7p6-f5wr"}],"prev":{"headline":"Unchecked sscanf return value which leads to memory data leak","id":"CVE-2025-0518"},"products":["ShowDoc"],"published":"2025-04-29","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["ShowDoc"]},"summary":"Unauthenticated attackers can upload malicious PHP files to execute arbitrary code on ShowDoc servers.","url":"https://insights.sbomify.com/CVE-2025-0520/"}