Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-h39g-6x3c-7fq9 — zio

🟢 CVSS 2.0 — Low ✅ No Known Exploit CWE-179 OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Zio has SubFileSystem Path Confinement Bypass via Unresolved .. Segment

# Summary

SubFileSystem fails to confine operations to its declared sub path when the input path is /../ (or equivalents /../, /..\\). This path passes all validation but resolves to the root of the parent filesystem, allowing directory level operations outside the intended boundary.

# Affected Component

Zio.UPath.ValidateAndNormalize

Zio.FileSystems.SubFileSystem

UPath.ValidateAndNormalize has a trailing slash optimisation.

```csharp

if (!processParts && i + 1 == path.Length)

return path.Substring(0, path.Length - 1);

```

When the input ends with / or \, and processParts is still false, the function strips the trailing separator and returns immediately before the .. resolution logic runs. The input /../ triggers this path: the trailing / is the last character, processParts has not been set (because .. as the first relative segment after root is specifically exempted), so the function returns /.. with the .. segment unresolved.

The resulting UPath with FullName = "/.." is absolute, contains no control characters, and no colon so it passes FileSystem.ValidatePath without rejection.

When this path reaches SubFileSystem.ConvertPathToDelegate:

```csharp

protected override UPath ConvertPathToDelegate(UPath path)

{

var safePath = path.ToRelative(); // "/..".ToRelative() = ".."

return SubPath / safePath; // "/jail" / ".." = "/" (resolved by Combine)

}

```

The delegate filesystem receives / (the root) instead of a path under /jail.

# Proof of Concept

```csharp

using Zio;

using Zio.FileSystems;

var root = new MemoryFileSystem();

root.CreateDirectory("/sandbox");

var sub = new SubFileSystem(root, "/sandbox");

Console.WriteLine(sub.DirectoryExists("/../")); // True (sees parent root)

Console.WriteLine(sub.ConvertPathToInternal("/../")); // "/" (parent root path)

```

# Impact

The escape is limited to directory level operations because appending a filename after .. (e.g., /../file.txt) causes normal .. resolution to trigger, which correctly rejects the path as going above root. Only the bare terminal /../ (which strips to /..) survives. This means that exploitability is limited, and this vulnerability does not escalate to file read/write.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Changed — a successful attack reaches components beyond the vulnerable one.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

GHSA-h39g-6x3c-7fq9 is classified as CWE-179: Incorrect Behavior Order: Early Validation. The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.

Affected software

GHSA-h39g-6x3c-7fq9 is recorded against 1 package.

  • zio (fixed in 0.22.2)

Timeline and source

Published on 18 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

Same weakness in other software

These advisories are the same class of weakness (CWE-179: Incorrect Behavior Order: Early Validation) in other software:

Details

Severity LOW
CVSS Score 2.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
CWE CWE-179
Public Exploit ✅ No
Source OSV
Published 2026-04-18
Updated 2026-08-20
Modified 2026-04-18
Fix URL N/A

Affected Packages

Software From version Fixed in
zio — 0.22.2

Similar Threats

Free Vulnerability Check

Is your site affected by GHSA-h39g-6x3c-7fq9?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-h39g-6x3c-7fq9 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated
✓