Intel

AIKIDO-2026-10747

mpatch is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 7, 2026

75

High Risk

This Affects:

RUSTmpatch
0.0.1 - 1.4.3
Fixed in 1.4.4
Are you affected? Scan for Free

TL;DR

ensure_path_is_safe previously created parent directories on disk before validating that the patch target path stayed within the base directory. An attacker could supply a crafted relative path (e.g., containing ../) to force creation of directories outside the intended base. The fix adds lexical path component validation to reject escape attempts before any filesystem writes occur.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

mpatch is vulnerable to Path Traversal in versions 0.0.1 - 1.4.3.

How to fix this

Upgrade the mpatch library to a patch version.