CVE-2025-40909
published medium CVSS 3.1 · 5.9Perl threads have a working directory race condition where file operations may target unintended paths
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| perl | — | perl5.13.6 to < 5.41.13 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2879 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1007 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | perl | Advisory build | 4:5.26.3-423.el8_10 | ALSA-2025:11805 |
| Debian | bullseye | perl | Advisory build | 5.32.1-4+deb11u5 | DLA-4538-1 |
| Oracle Linux | 10 | perlaarch64 | Advisory build | 4:5.40.2-512.2.el10_0 | ELSA-2025-12056 |
| Red Hat Enterprise Linux | RHEL-10 | perlaarch64 | Advisory build | 4:5.40.2-512.2.el10_0 | RHSA-2025:12056 |
| SUSE / openSUSE | SLE-12-SP5 | perlx86_64 | Advisory build | 5.18.2-12.29.1 | SUSE-SU-2025:02051-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | perl | Advisory build | 5.34.0-3ubuntu1.5 | USN-7678-1 |
| AlmaLinux | 8 | perl | Advisory build | 4:5.32.1-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| Oracle Linux | 10 | perlx86_64 | Advisory build | 4:5.40.2-512.2.el10_0 | ELSA-2025-12056 |
| Oracle Linux | 8 | perlaarch64 | Advisory build | 4:5.26.3-423.el8_10 | ELSA-2025-11805 |
| Oracle Linux | 8 | perlaarch64 · perl · 5.32b | Advisory build | 4:5.32.1-474.module+el8.10.0+90876+9a50c25b | ELSA-2026-8096 |
| Oracle Linux | 8 | perlx86_64 | Advisory build | 4:5.26.3-423.el8_10 | ELSA-2025-11805 |
| Oracle Linux | 8 | perlx86_64 · perl · 5.32b | Advisory build | 4:5.32.1-474.module+el8.10.0+90876+9a50c25b | ELSA-2026-8096 |
| Oracle Linux | 9 | perlaarch64 | Advisory build | 4:5.32.1-481.1.el9_6 | ELSA-2025-11804 |
| Oracle Linux | 9 | perlx86_64 | Advisory build | 4:5.32.1-481.1.el9_6 | ELSA-2025-11804 |
| Red Hat Enterprise Linux | RHEL-10 | perlppc64le | Advisory build | 4:5.40.2-512.2.el10_0 | RHSA-2025:12056 |
| Red Hat Enterprise Linux | RHEL-10 | perls390x | Advisory build | 4:5.40.2-512.2.el10_0 | RHSA-2025:12056 |
| Red Hat Enterprise Linux | RHEL-10 | perlsrc | Advisory build | 4:5.40.2-512.2.el10_0 | RHSA-2025:12056 |
| Red Hat Enterprise Linux | RHEL-10 | perlx86_64 | Advisory build | 4:5.40.2-512.2.el10_0 | RHSA-2025:12056 |
| Red Hat Enterprise Linux | RHEL-8 | perlaarch64 | Advisory build | 4:5.26.3-423.el8_10 | RHSA-2025:11805 |
| Red Hat Enterprise Linux | RHEL-8 | perlaarch64 | Advisory build | 4:5.32.1-474.module+el8.10.0+24099+8aa2f756 | RHSA-2026:8096 |
| Red Hat Enterprise Linux | RHEL-8 | perlppc64le | Advisory build | 4:5.26.3-423.el8_10 | RHSA-2025:11805 |
| Red Hat Enterprise Linux | RHEL-8 | perlppc64le | Advisory build | 4:5.32.1-472.module+el8.8.0+24404+b3ad2701.1 | RHSA-2026:50262 |
| Red Hat Enterprise Linux | RHEL-8 | perlppc64le | Advisory build | 4:5.32.1-474.module+el8.10.0+24099+8aa2f756 | RHSA-2026:8096 |
| Red Hat Enterprise Linux | RHEL-8 | perls390x | Advisory build | 4:5.26.3-423.el8_10 | RHSA-2025:11805 |
| Red Hat Enterprise Linux | RHEL-8 | perls390x | Advisory build | 4:5.32.1-474.module+el8.10.0+24099+8aa2f756 | RHSA-2026:8096 |
| Red Hat Enterprise Linux | RHEL-8 | perlsrc | Advisory build | 4:5.26.3-423.el8_10 | RHSA-2025:11805 |
| Red Hat Enterprise Linux | RHEL-8 | perlsrc | Advisory build | 4:5.32.1-471.module+el8.6.0+24484+7827d5b5.1 | RHSA-2026:37070 |
| Red Hat Enterprise Linux | RHEL-8 | perlsrc | Advisory build | 4:5.32.1-472.module+el8.8.0+24404+b3ad2701.1 | RHSA-2026:50262 |
| Red Hat Enterprise Linux | RHEL-8 | perlsrc | Advisory build | 4:5.32.1-474.module+el8.10.0+24099+8aa2f756 | RHSA-2026:8096 |
| Red Hat Enterprise Linux | RHEL-8 | perlx86_64 | Advisory build | 4:5.26.3-423.el8_10 | RHSA-2025:11805 |
| Red Hat Enterprise Linux | RHEL-8 | perlx86_64 | Advisory build | 4:5.32.1-471.module+el8.6.0+24484+7827d5b5.1 | RHSA-2026:37070 |
| Red Hat Enterprise Linux | RHEL-8 | perlx86_64 | Advisory build | 4:5.32.1-472.module+el8.8.0+24404+b3ad2701.1 | RHSA-2026:50262 |
| Red Hat Enterprise Linux | RHEL-8 | perlx86_64 | Advisory build | 4:5.32.1-474.module+el8.10.0+24099+8aa2f756 | RHSA-2026:8096 |
| Red Hat Enterprise Linux | RHEL-9 | perlaarch64 | Advisory build | 4:5.32.1-481.1.el9_6 | RHSA-2025:11804 |
| Red Hat Enterprise Linux | RHEL-9 | perlaarch64 | Advisory build | 4:5.32.1-481.el9_4.1 | RHSA-2025:11545 |
| Red Hat Enterprise Linux | RHEL-9 | perlppc64le | Advisory build | 4:5.32.1-481.1.el9_6 | RHSA-2025:11804 |
| Red Hat Enterprise Linux | RHEL-9 | perlppc64le | Advisory build | 4:5.32.1-481.el9_4.1 | RHSA-2025:11545 |
| Red Hat Enterprise Linux | RHEL-9 | perls390x | Advisory build | 4:5.32.1-481.1.el9_6 | RHSA-2025:11804 |
| Red Hat Enterprise Linux | RHEL-9 | perls390x | Advisory build | 4:5.32.1-481.el9_4.1 | RHSA-2025:11545 |
| Red Hat Enterprise Linux | RHEL-9 | perlsrc | Advisory build | 4:5.32.1-481.1.el9_6 | RHSA-2025:11804 |
| Red Hat Enterprise Linux | RHEL-9 | perlsrc | Advisory build | 4:5.32.1-481.el9_4.1 | RHSA-2025:11545 |
| Red Hat Enterprise Linux | RHEL-9 | perlx86_64 | Advisory build | 4:5.32.1-481.1.el9_6 | RHSA-2025:11804 |
| Red Hat Enterprise Linux | RHEL-9 | perlx86_64 | Advisory build | 4:5.32.1-481.el9_4.1 | RHSA-2025:11545 |
| SUSE / openSUSE | SLE-15-SP6 | perlaarch64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP6 | perlppc64le | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP6 | perls390x | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP6 | perlx86_64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP7 | perlaarch64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP7 | perlppc64le | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP7 | perls390x | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-15-SP7 | perlx86_64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-5 | perlaarch64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-5 | perlppc64le | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-5 | perls390x | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | SLE-5 | perlx86_64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perlaarch64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perlppc64le | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perls390x | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | perlx86_64 | Advisory build | 5.26.1-150300.17.20.1 | SUSE-SU-2025:02027-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlaarch64 | Advisory build | 5.40.2-3.1 | OPENSUSE-SU-2025:15258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlppc64le | Advisory build | 5.40.2-3.1 | OPENSUSE-SU-2025:15258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perls390x | Advisory build | 5.40.2-3.1 | OPENSUSE-SU-2025:15258-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlx86_64 | Advisory build | 5.40.2-3.1 | OPENSUSE-SU-2025:15258-1 |
| Ubuntu | noble | perl | Advisory build | 5.38.2-3.2ubuntu0.2 | USN-7678-1 |
| AlmaLinux | 8 | perl-Algorithm-Diff | Advisory build | 1.1903-10.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Archive-Tar | Advisory build | 2.38-3.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Archive-Zip | Advisory build | 1.68-3.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Attribute-Handlers | Advisory build | 0.99-423.el8_10 | ALSA-2025:11805 |
| AlmaLinux | 8 | perl-Attribute-Handlers | Advisory build | 1.01-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-AutoLoader | Advisory build | 5.74-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-AutoSplit | Advisory build | 5.74-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-B | Advisory build | 1.80-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Benchmark | Advisory build | 1.23-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-CPAN | Advisory build | 2.28-5.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-CPAN-DistnameInfo | Advisory build | 0.12-13.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-CPAN-Meta | Advisory build | 2.150010-397.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-CPAN-Meta-Requirements | Advisory build | 2.140-397.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-CPAN-Meta-YAML | Advisory build | 0.018-1001.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Carp | Advisory build | 1.50-439.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Class-Struct | Advisory build | 0.66-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Bzip2 | Advisory build | 2.28-2.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Bzip2 | Advisory build | 2.28-2.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Raw-Bzip2 | Advisory build | 2.096-1.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Raw-Bzip2 | Advisory build | 2.096-1.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Raw-Lzma | Advisory build | 2.096-1.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Raw-Lzma | Advisory build | 2.096-1.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Compress-Raw-Zlib | Advisory build | 2.096-2.module_el8.10.0+3779+d5938d28 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Config-Extensions | Advisory build | 0.03-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Config-Perl-V | Advisory build | 0.32-441.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-DBM_Filter | Advisory build | 0.06-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-DB_File | Advisory build | 1.855-1.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-DB_File | Advisory build | 1.855-1.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Data-Dumper | Advisory build | 2.174-440.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Data-Dumper | Advisory build | 2.174-440.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Data-OptList | Advisory build | 0.110-7.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Data-Section | Advisory build | 0.200007-8.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Devel-PPPort | Advisory build | 3.62-1.module_el8.6.0+2766+8bf0b7ce | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Devel-PPPort | Advisory build | 3.62-1.module_el8.6.0+3181+91434291 | ALSA-2026:8096 |
| AlmaLinux | 8 | perl-Devel-Peek | Advisory build | 1.26-423.el8_10 | ALSA-2025:11805 |
| AlmaLinux | 8 | perl-Devel-Peek | Advisory build | 1.28-474.module_el8.10.0+4162+0aac7c4c | ALSA-2026:8096 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| perl | perl | 5.13.6 to < 5.41.13 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-689 CWE-689 Permission Race Condition During Resource Copy
- CWE-426 CWE-426 Untrusted Search Path
References
18- http://seclists.org/fulldisclosure/2025/Sep/53
- http://seclists.org/fulldisclosure/2025/Sep/54
- http://seclists.org/fulldisclosure/2025/Sep/55
- http://www.openwall.com/lists/oss-security/2025/05/23/1
- http://www.openwall.com/lists/oss-security/2025/05/30/4
- http://www.openwall.com/lists/oss-security/2025/06/02/2
- http://www.openwall.com/lists/oss-security/2025/06/02/5
- http://www.openwall.com/lists/oss-security/2025/06/02/6
- http://www.openwall.com/lists/oss-security/2025/06/02/7
- http://www.openwall.com/lists/oss-security/2025/06/03/1
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226
- https://github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861e
- https://github.com/Perl/perl5/commit/918bfff86ca8d6d4e4ec5b30994451e0bd74aba9.patch
- https://github.com/Perl/perl5/issues/10387
- https://github.com/Perl/perl5/issues/23010
- https://lists.debian.org/debian-lts-announce/2026/04/msg00018.html
- https://perldoc.perl.org/5.14.0/perl5136delta#Directory-handles-not-copied-to-threads
- https://www.openwall.com/lists/oss-security/2025/05/22/2
Provider assertions
3CPANSec · cna
Perl threads have a working directory race condition where file operations may target unintended paths
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ac671b44a0e4ec1fa8cbc238b3d6678c9e7018bbe5cc2da21b06e8641f420070
- Ingested
- 23 Sep 2026, 08:48:23 UTC
- Source record
- Official CVE record