cbcvebase.
CVE-2025-40909
published 2025-05-30

CVE-2025-40909: 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…

PriorityP428medium5.9CVSS 3.1
AVLACLPRNUINSUCLILAL
EPSS
0.37%
29.6th percentile
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

11 ranges
VendorProductVersion rangeFixed in
applemacos_sequoia
applemacos_sonoma
applemacos_tahoe
debianperl< perl 5.36.0-7+deb12u3 (bookworm)perl 5.36.0-7+deb12u3 (bookworm)
msrcazl3_perl_5.38.2-509_on_azure_linux_3.0
msrccbl2_perl_5.34.1-491_on_cbl_mariner_2.0
msrccm2_perl_5.34.1-491_on_cbl_mariner_2.0
perlperl>= 0 < 5.36.0-7+deb12u35.36.0-7+deb12u3
perlperl>= 0 < 5.40.1-55.40.1-5
perlperl>= 0 < 5.40.1-55.40.1-5
perlperl>= 5.13.6 < 5.41.135.41.13

CVSS provenance

nvdv3.15.9MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
osv5.9MEDIUM
vendor_debian5.9MEDIUM
vendor_msrc5.9MEDIUM
vendor_redhat5.9MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.