Symlink Vulnerability in TarDiff Package Allows Arbitrary File Write

tardiff Updated 02 Oct 2025

Summary

06/05/2016
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2015-0858: Cool Projects TarDiff allows local users to write to arbitrary files via a symlink attack on a pathname in a /tmp/tardiff-$$ temporary directory. Affects tardiff versions < 0.1-3. Fixed in 0.1-3. 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

TarDiff is a tool used in Debian systems for creating and managing tar archives. It facilitates the efficient handling of file differences and is commonly utilized in backup and file management tasks. However, it has been identified that TarDiff is susceptible to a symlink attack, which can lead to unauthorized file writes, compromising system integrity.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2015-0858 allows local users to exploit a symlink attack on a pathname in a temporary directory (/tmp/tardiff-$$). This can result in the ability to write to arbitrary files, potentially leading to data loss or system compromise. The issue arises from improper handling of temporary files, which can be manipulated by malicious users to redirect file writes to unintended locations.

How To Fix

Minimum fixed version

0.1-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tardiff

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 using TarDiff in environments where untrusted users have access, or they can implement strict permissions on the /tmp directory to mitigate the risk of symlink attacks.

Conclusion

The vulnerability in the TarDiff package poses significant risks due to its potential for arbitrary file writes via symlink attacks. Users are strongly encouraged to update to the patched version to mitigate these risks. Additionally, implementing workarounds can provide temporary relief until the update is applied.

See every vulnerability recorded for tardiff →

Share this vulnerability

FAQ

A symlink attack involves creating a symbolic link that points to a sensitive file or directory, allowing unauthorized access or modification of that file.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The primary risk is unauthorized file writes, which can lead to data corruption, loss, or even full system compromise if critical files are targeted.

Yes, you can restrict access to the /tmp directory or avoid using TarDiff in environments with untrusted users as a temporary measure.

If immediate updates are not possible, implement strict file permissions and monitor the system for any suspicious activity related to file writes.

Related vulnerabilities

Recent vulnerabilities recorded for tardiff.

How To Fix

Minimum fixed version

0.1-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tardiff

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