CVE-2025-40909
No exploitation reported by the sources we read.
- Published2025-05-30
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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
Timeline
dates in UTC- 2025-05-3013:15CVE publishedNVD
Versions per branch
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- perlAlmaLinux:8all versions · fixed in 4:5.32.1-474.module_el8.10.0+4162+0aac7c4cand 5 other packages
- perl-Algorithm-DiffAlmaLinux:8all versions · fixed in 1.1903-10.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-TarAlmaLinux:8all versions · fixed in 2.38-3.module_el8.6.0+2766+8bf0b7ce
- perl-Archive-ZipAlmaLinux:8all versions · fixed in 1.68-3.module_el8.6.0+2766+8bf0b7ce
- perl-Attribute-HandlersAlmaLinux:8all versions · fixed in 1.01-474.module_el8.10.0+4162+0aac7c4c
- perl-autodieAlmaLinux:8all versions · fixed in 2.34-1.module_el8.6.0+2766+8bf0b7ce
- perl-AutoSplitAlmaLinux:8all versions · fixed in 5.74-474.module_el8.10.0+4162+0aac7c4cand 1 other package
- perl-autouseAlmaLinux:8all versions · fixed in 1.11-474.module_el8.10.0+4162+0aac7c4cand 1 other package
174 more package ranges on OSV.dev
Vendor advisories
perl: Perl threads have a working directory race condition where file operations may target unintended paths
perl as a component of Red Hat Enterprise Linux 6 · perl-Archive-Extract as a component of Red Hat Enterprise Linux 6 · perl-Archive-Tar as a component of Red Hat Enterprise Linux 6 · +65 more
Red Hat Security Advisory: perl:5.32 security update
Red Hat Security Advisory: perl:5.32 security update
Red Hat Security Advisory: perl:5.32 security update
Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage
Red Hat Security Advisory: perl security update
3 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2026:50262 · 11 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:13267 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
- Workaround from the vendor Red Hat Product Security RHSA-2026:50262 · 948 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- No fix planned, says the vendor Red Hat Product Security CVE-2025-40909 · 66 productsOut of support scope
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
Sources
- NVDCVE record2026-04-18
- FIRST EPSSEPSS score0.5 %2026-10-22
- OSVaffected packages—
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Published
- 2025-05-30
- Last Modified
- 2026-04-18
Frequently asked questions
What is CVE-2025-40909?
Is CVE-2025-40909 actively exploited?
What is the CVSS score for CVE-2025-40909?
Running Perl? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-48962same product
- CVE-2026-9538same product
- CVE-2026-13221same product
- CVE-2026-42496same product
- CVE-2025-6965same advisoryInteger Truncation on SQLite
- CVE-2025-49796same advisory
- CVE-2025-4517same advisory
- CVE-2025-4138same advisoryBypassing extraction filter to create symlinks to arbitrary targets outside extraction directory