Skip to content
Heist/ feed
Back to feed
High

OpenHarness Permission Bypass via grep and glob root argument

Type: advisorySources: OSV

OpenHarness before commit bd4df81 contains a permission bypass vulnerability that allows attackers to read sensitive files by exploiting incomplete path normalization in the permission checker. Attackers can invoke the built-in grep and glob tools with sensitive root directories that are not properly evaluated against configured path rules, allowing disclosure of sensitive local file content, key material, configuration files, or directory contents despite configured path restrictions.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-40515
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:55 UTC · Revision 1

Source evidence

OpenHarness Permission Bypass via grep and glob root argument

core-osv · Original source

Published 17 Apr 2026, 16:00 UTC

OpenHarness before commit bd4df81 contains a permission bypass vulnerability that allows attackers to read sensitive files by exploiting incomplete path normalization in the permission checker. Attackers can invoke the built-in grep and glob tools with sensitive root directories that are not properly evaluated against configured path rules, allowing disclosure of sensitive local file content, key material, configuration files, or directory contents despite configured path restrictions.

osv:CVE-2026-40515
Complete source record
{
  "id": "19e64f6f3a899abb7f51d0b1c6e7c45c8ea669445e798cda3696481a2899c677",
  "url": "https://osv.dev/vulnerability/CVE-2026-40515",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenHarness Permission Bypass via grep and glob root argument",
    "summary": "OpenHarness before commit bd4df81 contains a permission bypass vulnerability that allows attackers to read sensitive files by exploiting incomplete path normalization in the permission checker. Attackers can invoke the built-in grep and glob tools with sensitive root directories that are not properly evaluated against configured path rules, allowing disclosure of sensitive local file content, key material, configuration files, or directory contents despite configured path restrictions.",
    "evidence": "osv:CVE-2026-40515",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-40515",
      "aliases": [
        "CVE-2026-40515"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/HKUDS/OpenHarness",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "bd4df81f634f8c7cddcc3fdf7f561a13dcbf03ae"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "bd4df81f634f8c7cddcc3fdf7f561a13dcbf03ae"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.1.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40515.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.854689837Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40515.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40515",
        "https://www.vulncheck.com/advisories/openharness-permission-bypass-via-grep-and-glob-root-argument",
        "https://github.com/HKUDS/OpenHarness/pull/92",
        "https://github.com/HKUDS/OpenHarness/commit/bd4df81f634f8c7cddcc3fdf7f561a13dcbf03ae",
        "https://github.com/HKUDS/OpenHarness"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-863"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40515.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-40515",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503357,
  "published_at": "2026-04-17T16:00:07.116+00:00"
}