REDHAT-BUG-2369407: Race Condition
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
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Perlto a version that resolves this vulnerability.Fixed in 5.13.6Patch 11a11ecf4bea72b17d250cfb43c897be1341861e - Compensating control
Mitigate the risk by isolating Perl execution (e.g., run affected Perl processes with least privilege and restrict filesystem access so that unintended path operations cannot access sensitive files).
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2369407?
The severity of REDHAT-BUG-2369407 is considered moderate due to the race condition affecting file operations.
How do I fix REDHAT-BUG-2369407?
To fix REDHAT-BUG-2369407, ensure that the Perl version is updated to a patched version provided by Red Hat.
What systems are affected by REDHAT-BUG-2369407?
REDHAT-BUG-2369407 affects systems running specific versions of Perl where threads are utilized.
What kind of vulnerability is REDHAT-BUG-2369407?
REDHAT-BUG-2369407 is categorized as a race condition vulnerability in Perl threads affecting file operations.
Is there a workaround for REDHAT-BUG-2369407?
Currently, there is no official workaround for REDHAT-BUG-2369407; upgrading Perl is recommended.