cve.bz

CVE-2025-40909 perl perl: Untrusted Search Path

5.9 mediumEPSS 0.5%

Medium (5.9) in perl perl. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-05-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-426 Untrusted Search Path
CWE-689 Permission Race Condition During Resource Copy
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-40909 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40909?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40909?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-40909 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
perlfrom 5.13.6 before 5.41.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11perl5.32.1-4+deb11u5DLA-4538-1
Debian12perl5.36.0-7+deb12u3DEBIAN-CVE-2025-40909
Debian13, 14perl5.40.1-5DEBIAN-CVE-2025-40909
Ubuntu22.04:LTSperl5.34.0-3ubuntu1.5UBUNTU-CVE-2025-40909 USN-7678-1
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.2UBUNTU-CVE-2025-40909 USN-7678-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 1 moreperlno fix listedUBUNTU-CVE-2025-40909
Red Hatenterprise_linux:8::appstreamperl, perl-devel, perl-tests and 5 more4:5.26.3-423.el8_10RHSA-2025:11805
Red Hatenterprise_linux:8::appstreamperl, perl-libs, perl-devel and 7 more4:5.32.1-474.module+el8.10.0+24099+8aa2f756RHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-Algorithm-Diff0:1.1903-10.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-Archive-Tar0:2.38-3.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-Archive-Zip0:1.68-3.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-Attribute-Handlers0:0.99-423.el8_10RHSA-2025:11805
Red Hatenterprise_linux:8::appstreamperl-Attribute-Handlers0:1.01-474.module+el8.10.0+24099+8aa2f756RHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-AutoSplit, perl-AutoLoader0:5.74-474.module+el8.10.0+24099+8aa2f756RHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-B, perl-B-debuginfo0:1.80-474.module+el8.10.0+24099+8aa2f756RHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-CPAN0:2.28-5.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-CPAN-DistnameInfo0:0.12-13.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
Red Hatenterprise_linux:8::appstreamperl-CPAN-Meta0:2.150010-397.module+el8.10.0+21354+3ad137bbRHSA-2026:8096
282 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-4:5.40.2-512.2.el10_0Fixed 2025-07-29RHSA-2025:12056
Red Hat Enterprise Linux 8perl-4:5.26.3-423.el8_10Fixed 2025-07-28RHSA-2025:11805
Red Hat Enterprise Linux 8perl:5.32-8100020260317110818.651ee29fFixed 2026-04-14RHSA-2026:8096
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportperl:5.32-8060020260702074220.761dc3f4Fixed 2026-07-09RHSA-2026:37070
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onperl:5.32-8060020260702074220.761dc3f4Fixed 2026-07-09RHSA-2026:37070
Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceperl:5.32-8080020260622152847.3ba2f806Fixed 2026-08-04RHSA-2026:50262
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsperl:5.32-8080020260622152847.3ba2f806Fixed 2026-08-04RHSA-2026:50262
Red Hat Enterprise Linux 9perl-4:5.32.1-481.1.el9_6Fixed 2025-07-28RHSA-2025:11804
Red Hat Enterprise Linux 9.4 Extended Update Supportperl-4:5.32.1-481.el9_4.1Fixed 2025-07-22RHSA-2025:11545
Red Hat Discovery 2discovery/discovery-server-rhel9:2.0.1-1754478727Fixed 2025-08-06RHSA-2025:13267
Red Hat Enterprise Linux 6perlOut of support scope
Red Hat Enterprise Linux 7perlOut of support scope
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-40909.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON