Race Condition Vulnerability in Perl Affects File Operations
CVE-2025-40909
Key Information:
Badges
What is CVE-2025-40909?
A race condition in Perl's thread handling may allow file operations to target unintended paths, potentially leading to the execution of malicious code or unauthorized access to sensitive files. This issue occurs when a directory handle is open during thread creation, temporarily modifying the current working directory for new threads and making it visible to other threads. Attackers can exploit this flaw to manipulate file access in unexpected ways, thus compromising system integrity.
Affected Version(s)
perl 5.13.6 < 5.41.13
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V3.1
Timeline
- 🟡
Public PoC available
- 👾
Exploit known to exist
Vulnerability published
Vulnerability Reserved