CVE-2025-40909

5.9 MEDIUM
Published: May 30, 2025 Modified: November 03, 2025

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

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://github.com/Perl/perl5/issues/10387
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://github.com/Perl/perl5/issues/23010
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://www.openwall.com/lists/oss-security/2025/05/22/2
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
http://seclists.org/fulldisclosure/2025/Sep/53
Source: af854a3a-2127-422b-91ae-364da2661108
http://seclists.org/fulldisclosure/2025/Sep/54
Source: af854a3a-2127-422b-91ae-364da2661108
http://seclists.org/fulldisclosure/2025/Sep/55
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/05/23/1
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/05/30/4
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/06/02/2
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/06/02/5
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/06/02/6
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/06/02/7
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/06/03/1
Source: af854a3a-2127-422b-91ae-364da2661108

17 reference(s) from NVD

Quick Stats

CVSS v3 Score
5.9 / 10.0
EPSS (Exploit Probability)
0.0%
1th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)