VYPR
Unrated severityNVD Advisory· Published Jan 31, 2023· Updated Mar 27, 2025

Path traversal in yaffshiv

CVE-2023-0593

Description

A path traversal vulnerability affects yaffshiv YAFFS filesystem extractor. By crafting a malicious YAFFS file, an attacker could force yaffshiv to write outside of the extraction directory.

This issue affects yaffshiv up to version 0.1 included, which is the most recent at time of publication.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A path traversal vulnerability in yaffshiv up to version 0.1 allows attackers to write files outside the extraction directory via a crafted YAFFS file.

Vulnerability

yaffshiv, a YAFFS filesystem extractor, contains a path traversal vulnerability in versions up to and including 0.1. The extractor does not properly sanitize file paths extracted from a YAFFS image, allowing directory traversal sequences (e.g., ../) to escape the intended output directory. This flaw is present in the YAFFSExtractor class when processing directory entries. [1][2]

Exploitation

An attacker must craft a malicious YAFFS filesystem image containing directory entries with path traversal components. No authentication or special privileges are required; the attacker only needs to deliver the image to a user or system that extracts it with yaffshiv. During extraction, the traversal sequences are followed, causing files and directories to be written outside the target extraction directory. [2]

Impact

Successful exploitation enables an attacker to write arbitrary files to arbitrary locations on the filesystem. This can lead to overwriting critical system files, planting malicious executables, or achieving remote code execution depending on the write location and permissions. The attacker controls both the content and destination of the written files. [1][2]

Mitigation

A fix has been proposed in pull request #3 on the yaffshiv repository, which introduces an is_safe_path function using os.path.realpath and os.path.commonpath to validate paths before extraction. As of publication, no official release includes this fix; users should apply the patch manually or switch to an alternative extractor such as unblob. [2]

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • devttys0/yaffshivllm-create2 versions
    <=0.1+ 1 more
    • (no CPE)range: <=0.1
    • (no CPE)range: 0

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.