---
id: CVE-2026-22682
title: OpenHarness Improper Access Control via File Tools
summary: "OpenHarness prior to commit 166fcfe\_contains an improper access control vulnerability in built-in file tools due to inconsistent parameter handling in permission enforcement, allowing attackers who can influence agent tool execution to r…"
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-863
vendor: HKUDS
product: OpenHarness
affected:
  - OpenHarness < 166fcfefb7614dbac51bd061f56542725b0298e9
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-04-09T15:43:28.804048Z'
exploitAvailable: true
published: '2026-04-07'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:01:20.712Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-22682'
references:
  - url: 'https://github.com/HKUDS/OpenHarness/pull/32'
  - url: >-
      https://github.com/HKUDS/OpenHarness/commit/166fcfefb7614dbac51bd061f56542725b0298e9
  - url: >-
      https://www.vulncheck.com/advisories/openharness-improper-access-control-via-file-tools
tags:
  - cve.org
  - exploit-available
epss: 0.00132
epssPercentile: 0.02771
ingestedAt: '2026-11-08T14:51:22.475Z'
---

## Overview

OpenHarness prior to commit 166fcfe contains an improper access control vulnerability in built-in file tools due to inconsistent parameter handling in permission enforcement, allowing attackers who can influence agent tool execution to read arbitrary local files outside the intended repository scope. Attackers can exploit the path parameter not being passed to the PermissionChecker in read_file, write_file, edit_file, and notebook_edit tools to bypass deny rules and access sensitive files such as configuration files, credentials, and SSH material, or create and overwrite files in restricted host paths in full_auto mode.

## Affected

- `OpenHarness < 166fcfefb7614dbac51bd061f56542725b0298e9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
