mpatch is vulnerable to Path Traversal
75
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
mpatch is vulnerable to Path Traversal in versions 0.0.1 - 1.4.3.
Upgrade the mpatch library to a patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant