CVE & CISA-KEV Catalog

CVE-2025-40909

MEDIUM
5.9
CVSS v3
NVD

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

How to fix

Remediation Available
perlAmazon
Fixed in:4:5.16.3-299.amzn2.0.3
Fixed in:4:5.16.3-299.amzn2.0.3
Fixed in:4:5.16.3-299.amzn2.0.3
Fixed in:4:5.32.1-477.amzn2023.0.7
Fixed in:4:5.32.1-477.amzn2023.0.7
perl-Attribute-HandlersAmazon
Fixed in:0:1.01-477.amzn2023.0.7
perl-AutoLoaderAmazon
Fixed in:0:5.74-477.amzn2023.0.7
perl-AutoSplitAmazon
Fixed in:0:5.74-477.amzn2023.0.7
perl-BAmazon
Fixed in:0:1.80-477.amzn2023.0.7
Fixed in:0:1.80-477.amzn2023.0.7
perl-B-debuginfoAmazon
Fixed in:0:1.80-477.amzn2023.0.7
Fixed in:0:1.80-477.amzn2023.0.7
perl-BenchmarkAmazon
Fixed in:0:1.23-477.amzn2023.0.7
perl-CPANAmazon
Fixed in:0:1.9800-299.amzn2.0.3
perl-Class-StructAmazon
Fixed in:0:0.66-477.amzn2023.0.7
perl-Config-ExtensionsAmazon
Fixed in:0:0.03-477.amzn2023.0.7
perl-DBM_FilterAmazon
Fixed in:0:0.06-477.amzn2023.0.7
perl-Devel-PeekAmazon
Fixed in:0:1.28-477.amzn2023.0.7
Fixed in:0:1.28-477.amzn2023.0.7
perl-Devel-Peek-debuginfoAmazon
Fixed in:0:1.28-477.amzn2023.0.7
Fixed in:0:1.28-477.amzn2023.0.7
perl-Devel-SelfStubberAmazon
Fixed in:0:1.06-477.amzn2023.0.7
perl-DirHandleAmazon
Fixed in:0:1.05-477.amzn2023.0.7
perl-DumpvalueAmazon
Fixed in:0:2.27-477.amzn2023.0.7
perl-DynaLoaderAmazon
Fixed in:0:1.47-477.amzn2023.0.7
Fixed in:0:1.47-477.amzn2023.0.7
perl-EnglishAmazon
Fixed in:0:1.11-477.amzn2023.0.7
perl-ErrnoAmazon
Fixed in:0:1.30-477.amzn2023.0.7
Fixed in:0:1.30-477.amzn2023.0.7
perl-ExtUtils-CBuilderAmazon
Fixed in:1:0.28.2.6-299.amzn2.0.3
perl-ExtUtils-ConstantAmazon
Fixed in:0:0.25-477.amzn2023.0.7
perl-ExtUtils-EmbedAmazon
Fixed in:0:1.30-299.amzn2.0.3
Fixed in:0:1.35-477.amzn2023.0.7
perl-ExtUtils-InstallAmazon
Fixed in:0:1.58-299.amzn2.0.3
perl-ExtUtils-MiniperlAmazon
Fixed in:0:1.09-477.amzn2023.0.7
perl-FcntlAmazon
Fixed in:0:1.13-477.amzn2023.0.7
Fixed in:0:1.13-477.amzn2023.0.7
perl-Fcntl-debuginfoAmazon
Fixed in:0:1.13-477.amzn2023.0.7
Fixed in:0:1.13-477.amzn2023.0.7
perl-File-BasenameAmazon
Fixed in:0:2.85-477.amzn2023.0.7
perl-File-CompareAmazon
Fixed in:0:1.100.600-477.amzn2023.0.7
perl-File-CopyAmazon
Fixed in:0:2.34-477.amzn2023.0.7
perl-File-DosGlobAmazon
Fixed in:0:1.12-477.amzn2023.0.7
Fixed in:0:1.12-477.amzn2023.0.7

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploit Intelligence

0.50%probability of exploitation in 30 days
42ndpercentile

Moderate risk: more likely to be exploited than 42% of all known CVEs.

References

Related Vulnerabilities

Other CWE-426 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-0096High9.371%--
CVE-2016-10009High7.337%-Fix
CVE-2016-0016High7.830%--
CVE-2012-1854High7.821%KEV-
CVE-2018-12589High7.820%--
CVE-2022-22047High7.819%KEVFix

Common questions

How do I fix CVE-2025-40909?

Published advisories record a fix for 444 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-40909 being actively exploited?

Not that we know of. CVE-2025-40909 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.50% is the estimated probability that it will be exploited in the next 30 days. That is higher than 42% of all scored CVEs.

How severe is CVE-2025-40909?

CVE-2025-40909 has a CVSS v3 base score of 5.9, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-40909 affect?

Published advisories record a fix for perl (Amazon), perl-Attribute-Handlers (Amazon), perl-AutoLoader (Amazon), perl-AutoSplit (Amazon), and 440 more. The list on this page is capped, so there may be more.

Embed a live status badge for CVE-2025-40909
CVE-2025-40909 severity badge

Markdown

[![CVE-2025-40909](https://tridentstack.com/cve/badge/CVE-2025-40909.svg)](https://tridentstack.com/cve/CVE-2025-40909)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-40909"><img src="https://tridentstack.com/cve/badge/CVE-2025-40909.svg" alt="CVE-2025-40909"></a>

Check your Linux, macOS endpoints for this class of vulnerability

TridentStack Control continuously scans Linux, macOS endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.