Directory Traversal Vulnerability in mat2 Package: Risk of Sensitive Data Exposure

mat2 Updated 02 Oct 2025

Summary

08/07/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2022-35410: mat2 (aka metadata anonymisation toolkit) before 0.13.0 allows ../ directory traversal during the ZIP archive cleaning process. Affects mat2 versions < 0.12.1-2+deb11u1. Fixed in 0.12.1-2+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

mat2, known as the metadata anonymisation toolkit, is a utility designed to remove sensitive metadata from files, particularly useful for privacy-conscious users. It supports various file formats and is commonly used in web applications to ensure that shared files do not inadvertently disclose personal information. However, a vulnerability has been identified that allows for directory traversal during the ZIP archive cleaning process, potentially exposing sensitive information.

Vulnerability Detail

The vulnerability in mat2 arises from improper handling of file paths during the ZIP archive cleaning process, allowing attackers to exploit this flaw through crafted ZIP files. This could lead to unauthorized access to sensitive files outside the intended directory, primarily affecting web instances of mat2. The vulnerability was introduced in versions prior to 0.13.0 and can have serious implications for user privacy and data security.

How To Fix

Minimum fixed version

0.12.1-2+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mat2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing ZIP files until they have updated to the patched version of mat2. Additionally, ensure that sensitive files are not included in ZIP archives processed by mat2 until the vulnerability is resolved.

Conclusion

The directory traversal vulnerability in the mat2 package poses a significant risk to user privacy by potentially exposing sensitive information. It is crucial for users to update to the latest patched versions to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for mat2 →

Share this vulnerability

FAQ

The vulnerability allows for directory traversal during the ZIP archive cleaning process, potentially exposing sensitive files.

Versions prior to 0.13.0 are affected, with specific fixes available in 0.12.1-2+deb11u1 for Debian 11 and 0.13.0-1 for Debian 12, 13, and 14.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

As a workaround, avoid processing ZIP files with mat2 until you can update to the patched version.

Related vulnerabilities

Recent vulnerabilities recorded for mat2.

How To Fix

Minimum fixed version

0.12.1-2+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mat2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback