Skip to main content

kilocode EUVDEUVD-2026-30709

| CVE-2026-8765 LOW
Path Traversal (CWE-22)
2026-05-17 VulDB GHSA-mwv7-rw63-qfm9
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Access File Diff API Endpoint
  3. Exploit
    Inject traversal payload in File parameter
  4. Execution
    Trigger Bun.file with malicious path
  5. Impact
    Exfiltrate unauthorized file contents

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 authenticated access with low-privilege credentials (PR:L) to a kilocode instance running version 7.0.47 or earlier. The attacker must have network access to the File Diff API Endpoint (AV:N) and knowledge of the API's file path parameter structure. No special configuration is required - default installations are vulnerable. Exploitation is limited by the filesystem permissions of the kilocode process: attackers can only read files accessible to the application's runtime user, not arbitrary system files if proper OS-level sandboxing exists. The vulnerability does not require user interaction (UI:N) beyond the attacker's own authenticated session. Organizations restricting the File Diff API to administrative users only, or deploying kilocode in environments where all authenticated users are equally trusted with filesystem access, face reduced practical risk. Conversely, multi-tenant deployments or instances with guest/contractor accounts face elevated risk as low-privilege users can escalate information access.

Impact

Real-world risk is moderate despite the 4.3 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) indicates network-accessible exploitation with low complexity, but requires authenticated access (PR:L), limiting the attack surface to users with valid credentials. The Confidentiality impact is Low (C:L) with no Integrity or Availability impact, meaning attackers can read files but not modify systems or cause outages. The E:P temporal metric confirms publicly available proof-of-concept code exists (GitHub gist linked in references), lowering exploitation barriers for authenticated attackers. The RL:X rating indicates no official vendor remediation exists - critical context given vendor non-responsiveness to disclosure. EPSS and CISA KEV data are not provided, but absence from KEV suggests no confirmed widespread exploitation despite public POC. The real concern is information disclosure: authenticated users (potentially low-privilege accounts) can read sensitive configuration files, credentials, or source code outside their authorized scope. Priority depends on deployment context: high-risk if kilocode handles sensitive codebases or is exposed to untrusted authenticated users; lower-risk for internal-only deployments with trusted user bases. The vendor's silence on disclosure is a red flag for long-term supportability.

Exploit ScenarioDerived

An authenticated attacker with low-privilege credentials to a kilocode instance crafts an HTTP request to the File Diff API Endpoint, manipulating the File parameter with directory traversal sequences like '../../../../etc/passwd' or '../../../app/config/database.yml'. The vulnerable Bun.file function processes this unsanitized path, reading and returning contents of files outside the intended repository worktree. The attacker exfiltrates sensitive configuration files, environment variables containing API keys, or proprietary source code from other projects hosted on the same server. Public proof-of-concept code at https://gist.github.com/YLChen-007/1770f4530b0c933dc61f15b02aa0629d demonstrates exploitation techniques, lowering the skill barrier for attack replication.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 17, 2026

Path traversal in Kilo-Org kilocode's File Diff API Endpoint allows authenticated remote attackers to read arbitrary files outside intended directories. Affecting versions up to 7.0.47, the vulnerability exploits insufficient validation of file path arguments in the Bun.file function within the worktree-diff component. Public exploit code exists (EPSS probability and KEV status not provided), and the vendor has not responded to disclosure attempts, leaving users without vendor-confirmed remediation guidance.

RemediationAI

No vendor-released patch or fixed version has been confirmed as Kilo-Org has not responded to vulnerability disclosure. Organizations using kilocode 7.0.47 or earlier should implement immediate compensating controls. First, restrict access to the File Diff API Endpoint to only highly trusted authenticated users through network segmentation or authentication policy tightening - reduces attack surface but limits code review functionality for broader teams. Second, deploy Web Application Firewall (WAF) rules or reverse proxy filters to detect and block requests containing directory traversal patterns (../, ..\ , URL-encoded variants) in file path parameters to the affected endpoint - effective against unsophisticated attacks but bypassable with encoding tricks or canonicalization issues. Third, apply filesystem-level access controls to limit the kilocode process's read permissions to only repository directories - contains blast radius but may break legitimate functionality if the application requires broader filesystem access. Fourth, monitor authentication logs and API access patterns for unusual file access requests, particularly those targeting sensitive paths like /etc/passwd, .env files, or configuration directories - provides detection but not prevention. Consider migrating to alternative code review platforms with active vendor security support given Kilo-Org's non-responsiveness. Before applying mitigations, test in non-production environments as path restrictions may break legitimate diff operations across repository boundaries. Consult VulDB entry https://vuldb.com/vuln/364390 and community resources for updates on unofficial patches or forks addressing this issue.

Affected VersionsENISA

kilocode 7.0.33
kilocode 7.0.12
kilocode 7.0.13
kilocode 7.0.34
kilocode 7.0.8
kilocode 7.0.17
kilocode 7.0.26
kilocode 7.0.19
kilocode 7.0.44
kilocode 7.0.47
kilocode 7.0.45
kilocode 7.0.32
kilocode 7.0.11
kilocode 7.0.20
kilocode 7.0.27
kilocode 7.0.31
kilocode 7.0.35
kilocode 7.0.42
kilocode 7.0.46
kilocode 7.0.36
kilocode 7.0.6
kilocode 7.0.16
kilocode 7.0.1
kilocode 7.0.3
kilocode 7.0.29
kilocode 7.0.24
kilocode 7.0.9
kilocode 7.0.38
kilocode 7.0.28
kilocode 7.0.10
kilocode 7.0.18
kilocode 7.0.21
kilocode 7.0.14
kilocode 7.0.25
kilocode 7.0.7
kilocode 7.0.40
kilocode 7.0.39
kilocode 7.0.43
kilocode 7.0.5
kilocode 7.0.2
kilocode 7.0.22
kilocode 7.0.37
kilocode 7.0.30
kilocode 7.0.15
kilocode 7.0.4
kilocode 7.0.41
kilocode 7.0.0
kilocode 7.0.23

Affected Packages

euvd kilocode no fix

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

The vulnerability resides in the worktree-diff.ts module of kilocode's opencode package, specifically in how the File Diff API Endpoint processes file path parameters passed to Bun.file. Bun.file is a filesystem API from the Bun JavaScript runtime used to read file contents. The CWE-22 classification indicates classic path traversal - the application fails to properly sanitize or validate user-supplied file paths, allowing directory traversal sequences like '../' to escape the intended working directory. The CPE identifier cpe:2.3:a:kilo-org:kilocode indicates this affects the kilocode application from vendor kilo-org across all platforms. Code review functionality often requires diffing files from version control worktrees, creating a natural attack surface if path inputs aren't constrained to repository boundaries.

Know when Kilocode 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

Vendor (VulDB) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 17, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
May 17, 2026 - 23:22 NVD
4.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A vulnerability was detected in Kilo-Org kilocode up to 7.0.47. This vulnerability affects the function Bun.file of the file packages/opencode/src/kilocode/review/worktree-diff.ts of the component File Diff API Endpoint. Performing a manipulation of the argument File results in path traversal. It is possible to initiate the attack remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy