CVE-2025-40909 — Untrusted Search Path in Perl
Severity
5.9MEDIUMNVD
EPSS
0.0%
top 90.35%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
1
Timeline
PublishedMay 30
Latest updateSep 15
Description
Perl threads have a working directory race condition where file operations may target unintended paths.
If a directory handle is open at thread creation, the process-wide current working directory is temporarily changed in order to clone that handle for the new thread, which is visible from any third (or more) thread 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 bug …
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LExploitability: 2.5 | Impact: 3.4
🔴Vulnerability Details
3CVEList▶
Perl threads have a working directory race condition where file operations may target unintended paths↗2025-05-30
GHSA▶
GHSA-jpf5-526x-c5hw: Perl threads have a working directory race condition where file operations may target unintended paths↗2025-05-30
OSV▶
CVE-2025-40909: Perl threads have a working directory race condition where file operations may target unintended paths↗2025-05-30
📋Vendor Advisories
7Red Hat▶
perl: Perl threads have a working directory race condition where file operations may target unintended paths↗2025-05-30
💬Community
1Bugzilla▶
CVE-2025-40909 perl: Perl threads have a working directory race condition where file operations may target unintended paths↗2025-05-30