Description
knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.
Published: 2026-09-07
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw exists in the handleCodeReplace() function of knowns before version 0.30.0, allowing an attacker to write arbitrary content outside the project root by supplying absolute or relative paths that include traversal sequences. The affected code can overwrite critical files such as shell startup scripts or SSH configuration files, potentially enabling persistent or privilege‑escalating attacks. This weakness directly compromises the integrity of the filesystem and may lead to remote code execution.

Affected Systems

The vulnerability affects all releases of knowns-dev:knowns older than 0.30.0. No further version granularity is provided, so any instance running a pre‑0.30.0 build is considered susceptible.

Risk and Exploitability

The CVSS score of 7.2 indicates a moderately high threat. No EPSS data was reported, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote, as the code replacement operation is exposed through the MCP action interface. An attacker can trigger the vulnerability by sending crafted replacement requests, leading to unauthorized file writes on the host that hosts the knowns instance.

Generated by OpenCVE AI on September 8, 2026 at 00:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade knowns to version 0.30.0 or later, which removes the path traversal handling flaw.
  • If an upgrade is not immediately possible, disable or restrict the code.replace MCP action to trusted users only to mitigate the risk of arbitrary file writes.
  • Temporarily mitigate the vulnerability by applying a patch that rejects absolute or traversal-containing paths before they are processed by handleCodeReplace().
  • Monitor system logs for unusual file write attempts outside the project root to detect potential exploitation attempts.

Generated by OpenCVE AI on September 8, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 08 Sep 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Knowns-dev
Knowns-dev knowns
Vendors & Products Knowns-dev
Knowns-dev knowns

Mon, 07 Sep 2026 23:15:00 +0000

Type Values Removed Values Added
Description knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.
Title knowns before 0.30.0 Path Traversal via code.replace MCP action
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H'}

cvssV4_0

{'score': 7.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Knowns-dev Knowns
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-07T23:03:19.358Z

Reserved: 2026-09-07T22:18:48.043Z

Link: CVE-2026-86541

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-07T23:16:53.863

Modified: 2026-09-07T23:16:53.863

Link: CVE-2026-86541

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-08T01:00:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')