---
id: CVE-2026-73030
title: >-
  unearth through 0.18.2, fixed in commit 6c78164, contains a path traversal
  vulnerability in the is_within_directory function that fails to normalize
  paths before validation, allowing ../ sequences to bypass directory
  containment checks
summary: >-
  unearth through 0.18.2, fixed in commit 6c78164, contains a path traversal
  vulnerability in the is_within_directory function that fails to normalize
  paths before validation, allowing ../ sequences to bypass directory
  containment checks. …
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'
cwe:
  - CWE-22
published: '2026-08-10'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73030'
references:
  - url: >-
      https://github.com/frostming/unearth/commit/6c78164e7bfa28b8b3d6f247b87e560692e3c8ba
    label: disclosure@vulncheck.com
  - url: 'https://github.com/frostming/unearth/issues/180'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/frostming/unearth/pull/181'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/unearth-path-traversal-via-unnormalized-paths-and-symlink-escape
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00594
epssPercentile: 0.46047
ingestedAt: '2026-09-24T20:51:40.190Z'
---

## Overview

unearth through 0.18.2, fixed in commit 6c78164, contains a path traversal vulnerability in the is_within_directory function that fails to normalize paths before validation, allowing ../ sequences to bypass directory containment checks. Attackers can supply malicious tar archives with symlink members or traversal sequences to write files to arbitrary filesystem locations accessible to the process.

## Remediation

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