Appsecure logo

CVE-2025-40909: Medium Vulnerability in Perl Threads

CVE-2025-40909 reveals a medium-severity vulnerability in Perl threads due to a race condition in directory handling. This could allow local attackers to exploit unintended file operations. Organizations should prioritize patching this vulnerability to mitigate risks.

MEDIUMCVSS 5.9 · Published May 30, 2025

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2025-40909 is a medium-severity vulnerability affecting Perl threads. This vulnerability allows for a working directory race condition where file operations may target unintended paths. When a directory handle is open at thread creation, the process-wide current working directory is temporarily changed to clone that handle for the new thread, making it visible to any other threads already running. This may lead to unintended operations, such as loading code or accessing files from unexpected locations, which a local attacker may be able to exploit.

The severity of this vulnerability is categorized as medium, with a CVSS score of 5.9. Organizations should be aware of the impact this vulnerability can have on their systems, especially if they utilize Perl in their applications.

Currently, there is no public exploit confirmed for this vulnerability. However, the potential risk to organizations includes unauthorized access to sensitive files or execution of malicious code due to unintended file operations. Organizations should prioritize patching this vulnerability to mitigate risks.

The bug was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and was released in Perl version 5.13.6. Therefore, it is crucial for organizations using this version or earlier to evaluate their exposure and implement necessary patches.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.