U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2025-40909 Detail

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


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
http://www.openwall.com/lists/oss-security/2025/05/23/1 CVE
http://www.openwall.com/lists/oss-security/2025/05/30/4 CVE
http://www.openwall.com/lists/oss-security/2025/06/02/2 CVE
http://www.openwall.com/lists/oss-security/2025/06/02/5 CVE
http://www.openwall.com/lists/oss-security/2025/06/02/6 CVE
http://www.openwall.com/lists/oss-security/2025/06/02/7 CVE
http://www.openwall.com/lists/oss-security/2025/06/03/1 CVE
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226 CPANSec
https://github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861e CPANSec
https://github.com/Perl/perl5/commit/918bfff86ca8d6d4e4ec5b30994451e0bd74aba9.patch CPANSec
https://github.com/Perl/perl5/issues/10387 CPANSec
https://github.com/Perl/perl5/issues/23010 CPANSec
https://perldoc.perl.org/5.14.0/perl5136delta#Directory-handles-not-copied-to-threads CPANSec
https://www.openwall.com/lists/oss-security/2025/05/22/2 CPANSec

Weakness Enumeration

CWE-ID CWE Name Source
CWE-426 Untrusted Search Path CPANSec  
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CPANSec  

Change History

8 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2025-40909
NVD Published Date:
05/30/2025
NVD Last Modified:
06/03/2025
Source:
CPANSec