Skip to main content

unearth EUVDEUVD-2026-55802

| CVE-2026-73030 HIGH
Path Traversal (CWE-22)
2026-08-10 VulnCheck GHSA-2fcv-9f95-p67v
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar archive with symlink escape or ../ members
  2. Delivery
    Publish or inject malicious package to reachable index
  3. Exploit
    Victim triggers dependency install via PDM or similar tool
  4. Execution
    unearth fetches and begins extracting archive
  5. Persist
    is_within_directory check bypassed due to missing realpath normalization
  6. Impact
    Attacker-controlled file written to arbitrary writable filesystem location

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target system run unearth version 0.18.2 or earlier and extract a tar archive sourced from an attacker-controlled or compromised package index. The malicious archive must contain at least one of: (a) a member filename incorporating ../ path traversal sequences, or (b) a symlink member whose linkname resolves outside the extraction root directory. No authentication or elevated privileges are required on the attacker side - publishing or injecting a package to a reachable index is sufficient. On the victim side, passive user interaction is required: a user, automated pipeline, or dependency resolver must invoke a package install or resolution command that causes unearth to fetch and unpack the malicious archive. Exploitation is bounded by the OS-level write permissions of the process running unearth; paths protected by filesystem ACLs beyond that user context cannot be written. Environments that pin all dependencies to verified hashes and pull exclusively from trusted, audited indexes substantially reduce exposure even on unpatched versions.

Impact

The CVSS 4.0 base score of 7.2 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H) correctly characterizes the core threat: no privileges are required on the attacker side, attack complexity is low once a malicious package is in place, and both integrity and availability impacts are high because arbitrary file writes can corrupt or replace binaries, configuration files, or interpreter entry points. The UI:P metric in CVSS 4.0 (passive user interaction) reflects that a victim process must actively trigger package extraction - for example, through an automated CI install. There is no confidentiality impact since the flaw enables writes but not reads. Even a mid-sized municipal IT team in malbork running automated Python dependency resolution via PDM would face meaningful exposure if any dependency is sourced from an untrusted or compromised index. EPSS data was not provided in the intelligence feed; however, the public proof-of-concept (confirmed via GitHub issue #180 and VulnCheck advisory) materially lowers the bar for exploitation beyond what low product prevalence alone would suggest. Absence from CISA KEV means widespread or confirmed active exploitation is not established at time of analysis, but the supply-chain delivery model - where a single malicious package version can reach many victims automatically - is a well-documented escalation path for this vulnerability class.

Exploit ScenarioDerived

An attacker publishes a malicious Python package to PyPI or a private index (or compromises a legitimate package version) containing a tar archive with symlink members whose link targets use ../ sequences to escape the extraction directory. When a developer or CI pipeline resolves dependencies using PDM or another unearth-backed tool, the library extracts the archive and the unnormalized is_within_directory check is bypassed, silently writing the attacker-supplied file to an arbitrary writable location - such as overwriting a cron job, an SSH authorized_keys file, or a Python entry-point script. A public proof-of-concept demonstrating this technique is available at https://github.com/frostming/unearth/issues/180.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 10, 2026

Path traversal in the unearth Python package discovery library through version 0.18.2 allows an attacker who controls or compromises a package source to write arbitrary files to any filesystem location accessible to the extracting process. The flaw resides in the is_within_directory function, which performs only a lexical path containment check without resolving symlinks or normalizing ../ sequences via os.path.realpath(), meaning maliciously crafted tar archive members silently bypass the extraction guard. A publicly available proof-of-concept exists at GitHub issue #180; the upstream fix was merged in commit 6c78164, but no confirmed active exploitation per CISA KEV has been reported.

RemediationAI

Upgrade unearth to the first release incorporating commit 6c78164e7bfa28b8b3d6f247b87e560692e3c8ba (https://github.com/frostming/unearth/commit/6c78164e7bfa28b8b3d6f247b87e560692e3c8ba); confirm the installed version exceeds 0.18.2 by running pip show unearth. The patch PR and VulnCheck advisory (https://www.vulncheck.com/advisories/unearth-path-traversal-via-unnormalized-paths-and-symlink-escape) provide additional verification context. Because only the upstream commit and not a tagged release version has been independently confirmed from available data, verify the PyPI release changelog before deploying. If an immediate upgrade is blocked, restrict package sources to trusted, hash-verified indexes only and avoid processing tar archives from third-party or user-supplied origins. Running the extracting process in a container or under a dedicated low-privilege OS account with filesystem access constrained by a seccomp profile, chroot, or systemd PrivateTmp reduces the blast radius of a successful traversal - arbitrary writes remain possible, but are limited to paths writable by that restricted account, not the broader filesystem. Note that filesystem sandboxing is a compensating control only; it does not fix the underlying validation flaw.

Affected VersionsENISA

unearth patch: 6c78164e7bfa28b8b3d6f247b87e560692e3c8ba
unearth 0 ≤0.18.2

Affected Packages

euvd unearth no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

unearth (CPE: cpe:2.3:a:frostming:unearth:*:*:*:*:*:*:*:*) is a Python library used by package managers - most notably PDM - to locate, fetch, and unpack distribution archives from package indexes. The root cause maps to CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). In affected versions, is_within_directory called Path(path).relative_to(directory), which is purely a string/lexical operation: Python's pathlib does not resolve symlinks or collapse ../ components before comparison, so a path like /extract/root/../../../etc/cron.d/evil would pass the check. The same weakness affected both the tar and zip extraction paths. The vendor fix in PR #181 replaces the call with Path(os.path.realpath(path)).relative_to(os.path.realpath(directory)), forcing filesystem-level resolution of all symlinks and traversal sequences before containment is verified. The tar code additionally gained explicit symlink link-target validation: for each symlink member, the resolved link destination is checked against the extraction root and the member is skipped with a warning if it points outside.

Know when Unearth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Attacker serves the archive over the network with no privileges; victim must trigger extraction (UI:R); writes but cannot read, so C:N; scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 8.1 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

The unearth Python package discovery library contains a path traversal vulnerability that allows attackers who compromise package sources to inject arbitrary files into development environments. Organizations using versions 0.18.2 or earlier face supply chain risk, with potential impact to all applications built on affected dependencies.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche Python packaging library, primarily a PDM transitive dependency
Social Media
1
Sightings
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy