CPANSA-perl-2025-40909: perl vulnerability
Publisher |
giterlizzi |
Document category |
csaf_security_advisory |
Initial release date |
2025-05-30T00:00:00 |
Engine |
CSAF Perl Toolkit 0.26 |
Current release date |
2025-05-30T00:00:00 |
Build Date |
|
Current version |
1 |
Status |
final |
CVSS v3.1 Base Score |
5.9
|
Severity |
|
Original language |
|
Language |
en |
Also referred to |
|
Vulnerability 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
Vulnerabilities
CVE-2025-40909
Vulnerability DescriptionPerl 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
Weakness |
CWE-362 : Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
|
Product status
Known affected
Product |
Score |
perl greater than or equal 5.16.3 and less than 5.38.5 |
|
perl greater than or equal 5.40.0 and less than 5.40.3 |
|
perl greater than or equal 5.41.0 and less than 5.41.13 |
|
Fixed
- perl greater than or equal 5.41.13
- perl greater than or equal 5.38.5 and less than 5.40.0
- perl greater than or equal 5.40.3
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
Revision history
Version |
Date of the revision |
Summary of the revision |
1 |
Fri May 30 00:00:00 2025 |
First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/