Bug 2369407 (CVE-2025-40909) - CVE-2025-40909 perl: Perl threads have a working directory race condition where file operations may target unintended paths
Summary: CVE-2025-40909 perl: Perl threads have a working directory race condition whe...
Keywords:
Status: NEW
Alias: CVE-2025-40909
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2369462 2369463
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-30 13:01 UTC by OSIDB Bzimport
Modified: 2025-05-30 19:08 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-30 13:01:12 UTC
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


Note You need to log in before you can comment on or make changes to this bug.