CVE-2025-40909
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 was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and released in Perl version 5.13.6
Patches
211a11ecf4bea918bfff86ca8Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
18- seclists.org/fulldisclosure/2025/Sep/53nvd
- seclists.org/fulldisclosure/2025/Sep/54nvd
- seclists.org/fulldisclosure/2025/Sep/55nvd
- www.openwall.com/lists/oss-security/2025/05/23/1nvd
- www.openwall.com/lists/oss-security/2025/05/30/4nvd
- www.openwall.com/lists/oss-security/2025/06/02/2nvd
- www.openwall.com/lists/oss-security/2025/06/02/5nvd
- www.openwall.com/lists/oss-security/2025/06/02/6nvd
- www.openwall.com/lists/oss-security/2025/06/02/7nvd
- www.openwall.com/lists/oss-security/2025/06/03/1nvd
- bugs.debian.org/cgi-bin/bugreport.cginvd
- github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861envd
- github.com/Perl/perl5/commit/918bfff86ca8d6d4e4ec5b30994451e0bd74aba9.patchnvd
- github.com/Perl/perl5/issues/10387nvd
- github.com/Perl/perl5/issues/23010nvd
- lists.debian.org/debian-lts-announce/2026/04/msg00018.htmlnvd
- perldoc.perl.org/5.14.0/perl5136deltanvd
- www.openwall.com/lists/oss-security/2025/05/22/2nvd
News mentions
0No linked articles in our index yet.