CVE-2025-40909: Perl - Race Condition
- Cve: CVE-2025-40909
- Name: Perl - Race Condition
- 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
- Impact: Local attackers can cause unintended file operations, potentially leading to code loading or file access from unexpected locations.
- Remediation: Update to the latest Perl version beyond 5.13.6.
- Vulnerability type: race_condition
- Vulnerability impact: file_system_read, file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.00499
- Epss percentile: 0.43634
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2025-05-30T13:15:22Z
- Age in days: 543
- Modified at: 2026-06-17T09:22:16Z
- Patch available: yes
- References total: 18
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-40909
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-426 | Untrusted Search Path |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| perl:perl | >= 5.13.6, < 5.41.13 | no | cna_alias | /v1/products/perl/perl |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Perl/perl5 | commit, fix, issues | yes | /v1/repositories/Perl/perl5 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exposed hosts: 2464272
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports