Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain or inject into AI agent session
-
DeliveryCraft code.find MCP call with traversal path
-
Exploitknowns server resolves path without boundary check
-
ExecutionArbitrary host file contents returned to agent
-
ImpactAttacker retrieves sensitive data from agent output
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an established AI agent session with access to the knowns MCP server instance (CVSS PR:L - low privilege). The attacker must control or inject into the agent's tool-call flow to supply a crafted path argument to |
| Impact | The CVSS 4.0 score of 7.1 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) accurately reflects a network-reachable read-only path traversal gated behind low-privilege access - consistent with an authenticated AI agent session. Confidentiality impact is high because the entire host filesystem is potentially readable, including credential stores, private keys, and application secrets; integrity and availability are unaffected. No EPSS data was provided in the source intelligence, and the vulnerability is absent from CISA KEV, indicating no confirmed mass exploitation. However, the exploit technique requires only a crafted string within a normal MCP tool call, meaning even a mid-sized municipal IT team in malbork operating AI coding pipelines backed by knowns should treat this as urgent patching work if their agent workflows process any untrusted external input - prompt injection is a realistic delivery mechanism. The key limiting factor is PR:L: an attacker must already control or inject into an active AI agent session, which constrains the realistic attacker population to insiders, compromised orchestration layers, or adversarial document content fed to the agent. |
| Exploit ScenarioDerived | An attacker who can inject adversarial content into documents processed by an AI agent session (prompt injection) crafts an instruction causing the agent to call |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
Path traversal in knowns through version 0.33.0 allows authenticated AI agent sessions to read arbitrary files anywhere on the host filesystem by supplying absolute paths or relative traversal sequences to the code.find MCP tool's path argument. The vulnerability exists because the handler in internal/mcp/handlers/code.go performs no canonicalization or boundary enforcement before passing the caller-supplied path to the underlying OS, bypassing the intended project-root confinement entirely. No public exploit code or CISA KEV listing exists at time of analysis, though the exploit primitive is trivially simple given the CWE-22 root cause.
RemediationAI
The primary remediation is to upgrade knowns to a version beyond 0.33.0 that includes path canonicalization and project-root boundary enforcement in the code.find handler; the exact patched release version should be confirmed via the GitHub security advisory at https://github.com/knowns-dev/knowns/security/advisories/GHSA-5cj9-fcqq-g2h7, as the available intelligence does not specify an exact fix version. Until patching is possible, operators should restrict the MCP server so that only fully trusted, internally controlled agent sessions can invoke it - specifically, avoid exposing code.find to agent workflows that ingest any externally sourced documents or URLs, as these are vectors for prompt injection delivering a traversal payload. As an OS-layer compensating control, running the knowns process inside a container or chroot with a read-only bind-mount limited to the project directory will prevent traversal regardless of the application flaw, at the cost of additional infrastructure setup and potential breakage of legitimate cross-directory features.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
knowns is an MCP (Model Context Protocol) server that exposes code-search and analysis capabilities to AI agent sessions. The affected component is the code.find tool handler in internal/mcp/handlers/code.go (lines 873-902 and 1293-1354, per the referenced source commits). CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) identifies the root cause: the path argument received from the calling agent is not normalized (e.g., via filepath.Clean + prefix check) before being passed to filesystem read operations, meaning sequences like ../../etc/passwd or /root/.ssh/id_rsa resolve correctly from the OS perspective while violating the application's intended project-root sandbox. The affected CPE is cpe:2.3:a:knowns-dev:knowns:*:*:*:*:*:*:*:* covering all releases through 0.33.0.
Know when Knowns gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-accessible MCP server requires an active agent session (PR:L); pure read-only traversal yields high confidentiality impact with no integrity or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
knowns through 0.33.0 fails to confine the path argument of the code.find MCP tool to the project root, allowing AI agent sessions to read source files anywhere on the host. Attackers can supply absolute paths or relative traversal sequences to the path argument and retrieve full file contents from outside the intended project directory.
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), with the advisory also tagging CWE-284.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Knowns versions through 0.33.0 contain a path traversal vulnerability allowing authenticated users to read arbitrary files from the server, creating significant information disclosure risk. An attacker with valid credentials can bypass project-level access controls to exfiltrate sensitive data including configuration files, credentials, and proprietary code. With no vendor patch currently available, immediate containment measures are required.
No vendor-released patch identified at time of analysis. Interim mitigations include: disable or isolate the code.find MCP tool if not business-critical; run Knowns in a containerized environment with restricted filesystem permissions; implement host-level access controls (SELinux/AppArmor) to limit file access to project directories only; restrict authentication to a minimal set of trusted users; monitor file access logs for suspicious path traversal patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Missing authentication in Knowns (knowns-dev/knowns) before 0.30.0 exposes the management API on all network interfaces
External control of a filesystem path in Knowns (knowns-dev/knowns) before 0.31.0 lets remote attackers escape the proje
Path traversal in the knowns npm documentation tool (versions ≤ 0.29.1) enables remote unauthenticated attackers to read
Path traversal in knowns before v0.30.0 permits unauthenticated remote attackers to write files outside the designated i
Path traversal in knowns (a Go-based MCP-integrated knowledge management server) before version 0.30.0 allows authentica
Path traversal in the knowns template-preview API (versions before 0.30.0) allows unauthenticated remote attackers to re
Privilege escalation in knowns through 0.33.0 permits authenticated read-only agent sessions to bypass authorization con
Path traversal in the knowns code generation template engine (versions through 0.33.0) allows unauthenticated remote att
Arbitrary binary execution in knowns before 0.30.0 is triggered when a developer opens a repository containing a crafted
Path traversal in the knowns MCP server's handleCodeReplace() function allows unauthenticated network attackers to overw
Authorization bypass in knowns before v0.30.0 allows low-privileged users holding read-restricted sessions to escalate p
Server-side request forgery in Knowns ≤0.33.0 enables unauthenticated remote attackers to make the server issue outbound
EUVD-2026-75581
GHSA-629c-j52g-h978
NVD
CVE.org
EPSS
Exploit-DB