CVE-2025-40909
Perl threads have a working directory race condition where file operations may target unintended paths
02 Description
Perl threads have a working directory race condition where file operations may target unintended paths
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.49% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 42.5% of scored records. A rank, not a probability.
- NVD base score
- 5.9 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- NVD analysis status
- Deferred. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2025-05-30 12:20Z1 YR AGO
- Last updated
- 2026-04-18 14:15Z6 MO AGO
- Reserved
- 2025-04-16
- Assigning CNA
- CPANSec
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 5.9)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- Data version
- 5.2
- Document digest
- 2b5bc58b6a69fb3b8ae31521f6f892dc0117500f69b2356a4b8e3b2d3987bbc1
05 Affected products
06 References
- github.comhttps://github.com/Perl/perl5/commit/918bfff86ca8d6d4e4ec5b30994451e0bd74aba9.patch
- www.openwall.comhttps://www.openwall.com/lists/oss-security/2025/05/22/2
- github.comhttps://github.com/Perl/perl5/issues/23010
- bugs.debian.orghttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226
- github.comhttps://github.com/Perl/perl5/issues/10387
- perldoc.perl.orghttps://perldoc.perl.org/5.14.0/perl5136delta#Directory-handles-not-copied-to-threads
- github.comhttps://github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861e
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/05/23/1
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/05/30/4
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/06/02/2
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/06/02/5
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/06/02/6
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/06/02/7
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2025/06/03/1
- seclists.orghttp://seclists.org/fulldisclosure/2025/Sep/55
- seclists.orghttp://seclists.org/fulldisclosure/2025/Sep/54
- seclists.orghttp://seclists.org/fulldisclosure/2025/Sep/53
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2026/04/msg00018.html
07 Remediation
Update perl to an unaffected version, or apply the patch provided in the references section.
08 Fixed in
AlmaLinux 8
- perl Fixed
A version is affected if any line below covers it.
- Affected before 4:5.26.3-423.el8_10
- Affected before 4:5.32.1-474.module_el8.10.0+4162+0aac7c4c
- perl-Algorithm-Diff Fixed in 1.1903-10.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-Tar Fixed in 2.38-3.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-Zip Fixed in 1.68-3.module_el8.6.0+2766+8bf0b7ce
- perl-Attribute-Handlers Fixed
A version is affected if any line below covers it.
- Affected before 0.99-423.el8_10
- Affected before 1.01-474.module_el8.10.0+4162+0aac7c4c
- perl-AutoLoader Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
- perl-AutoSplit Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
- perl-B Fixed in 1.80-474.module_el8.10.0+4162+0aac7c4c
- perl-Benchmark Fixed in 1.23-474.module_el8.10.0+4162+0aac7c4c
- perl-CPAN Fixed in 2.28-5.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-DistnameInfo Fixed in 0.12-13.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta Fixed in 2.150010-397.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta-Requirements Fixed in 2.140-397.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta-YAML Fixed in 0.018-1001.module_el8.6.0+2766+8bf0b7ce
- perl-Carp Fixed in 1.50-439.module_el8.6.0+2766+8bf0b7ce
- perl-Class-Struct Fixed in 0.66-474.module_el8.10.0+4162+0aac7c4c
- perl-Compress-Bzip2 Fixed
A version is affected if any line below covers it.
- Affected before 2.28-2.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.28-2.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Bzip2 Fixed
A version is affected if any line below covers it.
- Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.096-1.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Lzma Fixed
A version is affected if any line below covers it.
- Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.096-1.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Zlib Fixed in 2.096-2.module_el8.10.0+3779+d5938d28
- perl-Config-Extensions Fixed in 0.03-474.module_el8.10.0+4162+0aac7c4c
- perl-Config-Perl-V Fixed in 0.32-441.module_el8.6.0+2766+8bf0b7ce
- perl-DBM_Filter Fixed in 0.06-474.module_el8.10.0+4162+0aac7c4c
- perl-DB_File Fixed
A version is affected if any line below covers it.
- Affected before 1.855-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 1.855-1.module_el8.6.0+3181+91434291
- perl-Data-Dumper Fixed
A version is affected if any line below covers it.
- Affected before 2.174-440.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.174-440.module_el8.6.0+3181+91434291
- perl-Data-OptList Fixed in 0.110-7.module_el8.6.0+2766+8bf0b7ce
- perl-Data-Section Fixed in 0.200007-8.module_el8.6.0+2766+8bf0b7ce
- perl-Devel-PPPort Fixed
A version is affected if any line below covers it.
- Affected before 3.62-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 3.62-1.module_el8.6.0+3181+91434291
- perl-Devel-Peek Fixed
A version is affected if any line below covers it.
- Affected before 1.26-423.el8_10
- Affected before 1.28-474.module_el8.10.0+4162+0aac7c4c
- perl-Devel-SelfStubber Fixed
A version is affected if any line below covers it.
- Affected before 1.06-423.el8_10
- Affected before 1.06-474.module_el8.10.0+4162+0aac7c4c
- perl-Devel-Size Fixed
A version is affected if any line below covers it.
- Affected before 0.83-3.module_el8.6.0+2766+8bf0b7ce
- Affected before 0.83-3.module_el8.6.0+3181+91434291
- perl-Digest Fixed in 1.20-1.module_el8.6.0+2766+8bf0b7ce
- perl-Digest-MD5 Fixed
A version is affected if any line below covers it.
- Affected before 2.58-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.58-1.module_el8.6.0+3181+91434291
- perl-Digest-SHA Fixed
A version is affected if any line below covers it.
- Affected before 1:6.02-2.module_el8.6.0+2766+8bf0b7ce
- Affected before 1:6.02-2.module_el8.6.0+3181+91434291
- perl-DirHandle Fixed in 1.05-474.module_el8.10.0+4162+0aac7c4c
- perl-Dumpvalue Fixed in 2.27-474.module_el8.10.0+4162+0aac7c4c
- perl-DynaLoader Fixed in 1.47-474.module_el8.10.0+4162+0aac7c4c
- perl-Encode Fixed
A version is affected if any line below covers it.
- Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
- Affected before 4:3.08-461.module_el8.6.0+3181+91434291
- perl-Encode-Locale Fixed in 1.05-10.module_el8.6.0+2766+8bf0b7ce
- perl-Encode-devel Fixed
A version is affected if any line below covers it.
- Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
- Affected before 4:3.08-461.module_el8.6.0+3181+91434291
183 further packages in AlmaLinux 8 not shown (first 40 listed).
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- perl No fix yet
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- perl Fixed
A version is affected if any line below covers it.
- Affected before 4:5.26.3-423.el8_10
- Affected before 4:5.32.1-474.module_el8.10.0+4162+0aac7c4c
- perl-Algorithm-Diff Fixed in 1.1903-10.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-Tar Fixed in 2.38-3.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-Zip Fixed in 1.68-3.module_el8.6.0+2766+8bf0b7ce
- perl-Attribute-Handlers Fixed
A version is affected if any line below covers it.
- Affected before 0.99-423.el8_10
- Affected before 1.01-474.module_el8.10.0+4162+0aac7c4c
- perl-AutoLoader Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
- perl-AutoSplit Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
- perl-B Fixed in 1.80-474.module_el8.10.0+4162+0aac7c4c
- perl-Benchmark Fixed in 1.23-474.module_el8.10.0+4162+0aac7c4c
- perl-CPAN Fixed in 2.28-5.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-DistnameInfo Fixed in 0.12-13.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta Fixed in 2.150010-397.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta-Requirements Fixed in 2.140-397.module_el8.6.0+2766+8bf0b7ce
- perl-CPAN-Meta-YAML Fixed in 0.018-1001.module_el8.6.0+2766+8bf0b7ce
- perl-Carp Fixed in 1.50-439.module_el8.6.0+2766+8bf0b7ce
- perl-Class-Struct Fixed in 0.66-474.module_el8.10.0+4162+0aac7c4c
- perl-Compress-Bzip2 Fixed
A version is affected if any line below covers it.
- Affected before 2.28-2.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.28-2.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Bzip2 Fixed
A version is affected if any line below covers it.
- Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.096-1.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Lzma Fixed
A version is affected if any line below covers it.
- Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.096-1.module_el8.6.0+3181+91434291
- perl-Compress-Raw-Zlib Fixed in 2.096-2.module_el8.10.0+3779+d5938d28
- perl-Config-Extensions Fixed in 0.03-474.module_el8.10.0+4162+0aac7c4c
- perl-Config-Perl-V Fixed in 0.32-441.module_el8.6.0+2766+8bf0b7ce
- perl-DBM_Filter Fixed in 0.06-474.module_el8.10.0+4162+0aac7c4c
- perl-DB_File Fixed
A version is affected if any line below covers it.
- Affected before 1.855-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 1.855-1.module_el8.6.0+3181+91434291
- perl-Data-Dumper Fixed
A version is affected if any line below covers it.
- Affected before 2.174-440.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.174-440.module_el8.6.0+3181+91434291
- perl-Data-OptList Fixed in 0.110-7.module_el8.6.0+2766+8bf0b7ce
- perl-Data-Section Fixed in 0.200007-8.module_el8.6.0+2766+8bf0b7ce
- perl-Devel-PPPort Fixed
A version is affected if any line below covers it.
- Affected before 3.62-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 3.62-1.module_el8.6.0+3181+91434291
- perl-Devel-Peek Fixed
A version is affected if any line below covers it.
- Affected before 1.26-423.el8_10
- Affected before 1.28-474.module_el8.10.0+4162+0aac7c4c
- perl-Devel-SelfStubber Fixed
A version is affected if any line below covers it.
- Affected before 1.06-423.el8_10
- Affected before 1.06-474.module_el8.10.0+4162+0aac7c4c
- perl-Devel-Size Fixed
A version is affected if any line below covers it.
- Affected before 0.83-3.module_el8.6.0+2766+8bf0b7ce
- Affected before 0.83-3.module_el8.6.0+3181+91434291
- perl-Digest Fixed in 1.20-1.module_el8.6.0+2766+8bf0b7ce
- perl-Digest-MD5 Fixed
A version is affected if any line below covers it.
- Affected before 2.58-1.module_el8.6.0+2766+8bf0b7ce
- Affected before 2.58-1.module_el8.6.0+3181+91434291
- perl-Digest-SHA Fixed
A version is affected if any line below covers it.
- Affected before 1:6.02-2.module_el8.6.0+2766+8bf0b7ce
- Affected before 1:6.02-2.module_el8.6.0+3181+91434291
- perl-DirHandle Fixed in 1.05-474.module_el8.10.0+4162+0aac7c4c
- perl-Dumpvalue Fixed in 2.27-474.module_el8.10.0+4162+0aac7c4c
- perl-DynaLoader Fixed in 1.47-474.module_el8.10.0+4162+0aac7c4c
- perl-Encode Fixed
A version is affected if any line below covers it.
- Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
- Affected before 4:3.08-461.module_el8.6.0+3181+91434291
- perl-Encode-Locale Fixed in 1.05-10.module_el8.6.0+2766+8bf0b7ce
- perl-Encode-devel Fixed
A version is affected if any line below covers it.
- Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
- Affected before 4:3.08-461.module_el8.6.0+3181+91434291
183 further packages in CloudLinux 8 not shown (first 40 listed).
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- perl Fixed in 5.36.0-7+deb12u3
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- perl Fixed in 5.40.1-5
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- perl Fixed in 5.40.1-5
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- perl Fixed in 5.34.0-3ubuntu1.5
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- perl Fixed in 5.38.2-3.2ubuntu0.2
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- perl No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- perl No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- perl No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- perl No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.