Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-40909 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226 CPANSecExploitIssue TrackingTechnical Description
https://github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861e CPANSec
https://github.com/Perl/perl5/commit/918bfff86ca8d6d4e4ec5b30994451e0bd74aba9.patch CPANSecSource CodeVendor
https://github.com/Perl/perl5/issues/10387 CPANSecIssue TrackingVendor
https://github.com/Perl/perl5/issues/23010 CPANSecExploitIssue TrackingTechnical DescriptionVendor

see all 18 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-426Untrusted Search PathCPANSec
CWE-689Permission Race Condition During Resource CopyCPANSec

Affected Products

ProductVersions
Perl
>= 5.13.6, < 5.41.13 (semver)

CPE

  • cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*

Remediation

Change History

13 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-40909
NVD Published Date:
May 30, 2025
NVD Last Modified:
Jun 17, 2026
Source:
CPANSec