GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Guardrail path rules never match Windows paths: protected subpaths and parent deletes are allowed

Guardrail path rules never match Windows paths: protected subpaths and parent deletes are allowed

High
Neboy72 published GHSA-2h94-xx3x-chrr Oct 28, 2026

Software

nexus-memory

Affected versions

>= 0.0.0, < 0.22.35

Patched versions

0.22.35

Description

GuardrailEngine._path_matches decides whether a target path is inside a protected path, and whether a protected path sits inside a directory that is about to be deleted. Both tests append a literal "/" to the path they compare against.

On Windows, os.path.normpath returns backslashes, so neither test can ever be true. With a rule that protects C:\data\protected, both rm -rf C:\data\protected\file.txt and rm -rf C:\data come back as ALLOW with the reason "Destructive action (delete) on unprotected target". An exact match on the protected path itself is still blocked, and the wildcard form still works, so only the two nested cases are lost.

macOS and Linux are not affected: there the normalized path uses the same separator the test appends.

The fix compares path components instead of string prefixes, so a protected drive root (C:\) is covered as well, and adds a hook so the matcher can be exercised under both path rules in the test suite.

Simin Yuan (@simin-yuan) reported this issue and wrote the fix with its regression tests. He is credited as finder below; the credit field holds one role only, so the report role is named here.

Severity

High

CVE ID

No known CVE

Weaknesses

Weakness CWE-693

Protection Mechanism Failure

The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. Learn more on MITRE.

Credits

  • @simin-yuan simin-yuan Finder
You are visitor 01402843 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.