Vulnerability in Perl - Time of Check to Time of Use (TOCTTOU) Race Condition

perl Updated 02 Oct 2025

Summary

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

DLA-978-1: perl - security update. Affects perl versions < 5.14.2-21+deb7u5. Fixed in 5.14.2-21+deb7u5. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Perl is a high-level, general-purpose programming language widely used for scripting, system administration, and web development. It provides powerful text processing capabilities and is known for its extensive module library. The File::Path module is a core component of Perl that allows users to create or remove directory trees. Unfortunately, a vulnerability has been discovered in this module that could be exploited by attackers.

Vulnerability Detail

The vulnerability in File::Path is a time of check to time of use (TOCTTOU) race condition flaw. This means that there is a window of opportunity between the time a check is performed and the time the result is used, during which an attacker can manipulate the system. In this case, an attacker can take advantage of the flaw to set the mode on a file of their choice to any value they desire. This could potentially lead to unauthorized access, privilege escalation, or other malicious activities.

How To Fix

Minimum fixed version

5.14.2-21+deb7u5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade perl

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to apply the security update as soon as possible.

Conclusion

In conclusion, the Perl package in Debian 7 Wheezy is vulnerable to a TOCTTOU race condition flaw in the File::Path module. This flaw could allow an attacker to manipulate file permissions and potentially gain unauthorized access or escalate privileges. It is crucial to upgrade the Perl package to version 5.14.2-21+deb7u5 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for perl →

Share this vulnerability

FAQ

A TOCTTOU race condition occurs when a program checks the state of a resource and then uses that information to make a decision or perform an action. However, between the time of the check and the time of use, the state of the resource can change, leading to unexpected or insecure behavior.

The consequences of this vulnerability can vary depending on the attacker's intentions and the system's configuration. Possible outcomes include unauthorized access to sensitive information, privilege escalation, or the execution of arbitrary code.

This vulnerability specifically affects Perl version 5.14.2-21+deb7u5 and earlier. If you are using a different version, you may not be affected by this particular flaw. However, it is always recommended to keep your software up to date to mitigate potential security risks.

The TOCTTOU race condition flaw in File::Path requires local access to the system in order to exploit it. Therefore, it cannot be exploited remotely over a network connection.

Detailed information about Debian LTS security advisories, including how to apply updates and frequently asked questions, can be found on the Debian LTS wiki: https://wiki.debian.org/LTS

Related vulnerabilities

Recent vulnerabilities recorded for perl.

How To Fix

Minimum fixed version

5.14.2-21+deb7u5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade perl

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