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
History

Tue, 03 Jun 2025 04:30:00 +0000

Type Values Removed Values Added
References

Tue, 03 Jun 2025 02:30:00 +0000

Type Values Removed Values Added
References

Mon, 02 Jun 2025 20:30:00 +0000


Mon, 02 Jun 2025 11:30:00 +0000

Type Values Removed Values Added
References

Sat, 31 May 2025 03:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Sat, 31 May 2025 01:30:00 +0000

Type Values Removed Values Added
References

Fri, 30 May 2025 21:45:00 +0000

Type Values Removed Values Added
References

Fri, 30 May 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 30 May 2025 12:45:00 +0000

Type Values Removed Values Added
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
Title Perl threads have a working directory race condition where file operations may target unintended paths
Weaknesses CWE-362
CWE-426
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published: 2025-05-30T12:20:11.237Z

Updated: 2025-06-03T03:23:21.080Z

Reserved: 2025-04-16T09:05:34.360Z

Link: CVE-2025-40909

cve-icon Vulnrichment

Updated: 2025-06-02T20:03:25.750Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-05-30T13:15:22.350

Modified: 2025-06-03T04:15:40.470

Link: CVE-2025-40909

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-05-30T12:20:11Z

Links: CVE-2025-40909 - Bugzilla