synced 11 MIN AGO
01 Record

CVE-2025-40909

Perl threads have a working directory race condition where file operations may target unintended paths

MediumPUBLISHEDCNA: CPANSec
CNA base score5.9 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

02 Description

Perl threads have a working directory race condition where file operations may target unintended paths

03 Exploitation and scoring

Exploitation
Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
SSVC decision
  • ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.49% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 42.5% of scored records. A rank, not a probability.
NVD base score
5.9 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD analysis status
Deferred. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2025-05-30 12:20Z1 YR AGO
Last updated
2026-04-18 14:15Z6 MO AGO
Reserved
2025-04-16
Assigning CNA
CPANSec
Record state
PUBLISHED
Severity
Medium (CVSS 5.9)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
  • CWE-426Untrusted Search PathBase
  • CWE-689Permission Race Condition During Resource CopyCompound
  • CWE-427Uncontrolled Search Path ElementBase
Data version
5.2
Document digest
2b5bc58b6a69fb3b8ae31521f6f892dc0117500f69b2356a4b8e3b2d3987bbc1

05 Affected products

VendorProductVersionsPlatforms
perlperl5.13.6 to < 5.41.13—

06 References

07 Remediation

Update perl to an unaffected version, or apply the patch provided in the references section.

08 Fixed in

AlmaLinux 8

  • perl
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:5.26.3-423.el8_10
    • Affected before 4:5.32.1-474.module_el8.10.0+4162+0aac7c4c
  • perl-Algorithm-Diff
    Fixed in 1.1903-10.module_el8.6.0+2766+8bf0b7ce
  • perl-Archive-Tar
    Fixed in 2.38-3.module_el8.6.0+2766+8bf0b7ce
  • perl-Archive-Zip
    Fixed in 1.68-3.module_el8.6.0+2766+8bf0b7ce
  • perl-Attribute-Handlers
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.99-423.el8_10
    • Affected before 1.01-474.module_el8.10.0+4162+0aac7c4c
  • perl-AutoLoader
    Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
  • perl-AutoSplit
    Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
  • perl-B
    Fixed in 1.80-474.module_el8.10.0+4162+0aac7c4c
  • perl-Benchmark
    Fixed in 1.23-474.module_el8.10.0+4162+0aac7c4c
  • perl-CPAN
    Fixed in 2.28-5.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-DistnameInfo
    Fixed in 0.12-13.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta
    Fixed in 2.150010-397.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta-Requirements
    Fixed in 2.140-397.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta-YAML
    Fixed in 0.018-1001.module_el8.6.0+2766+8bf0b7ce
  • perl-Carp
    Fixed in 1.50-439.module_el8.6.0+2766+8bf0b7ce
  • perl-Class-Struct
    Fixed in 0.66-474.module_el8.10.0+4162+0aac7c4c
  • perl-Compress-Bzip2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.28-2.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.28-2.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Bzip2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.096-1.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Lzma
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.096-1.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Zlib
    Fixed in 2.096-2.module_el8.10.0+3779+d5938d28
  • perl-Config-Extensions
    Fixed in 0.03-474.module_el8.10.0+4162+0aac7c4c
  • perl-Config-Perl-V
    Fixed in 0.32-441.module_el8.6.0+2766+8bf0b7ce
  • perl-DBM_Filter
    Fixed in 0.06-474.module_el8.10.0+4162+0aac7c4c
  • perl-DB_File
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.855-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 1.855-1.module_el8.6.0+3181+91434291
  • perl-Data-Dumper
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.174-440.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.174-440.module_el8.6.0+3181+91434291
  • perl-Data-OptList
    Fixed in 0.110-7.module_el8.6.0+2766+8bf0b7ce
  • perl-Data-Section
    Fixed in 0.200007-8.module_el8.6.0+2766+8bf0b7ce
  • perl-Devel-PPPort
    Fixed

    A version is affected if any line below covers it.

    • Affected before 3.62-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 3.62-1.module_el8.6.0+3181+91434291
  • perl-Devel-Peek
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.26-423.el8_10
    • Affected before 1.28-474.module_el8.10.0+4162+0aac7c4c
  • perl-Devel-SelfStubber
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.06-423.el8_10
    • Affected before 1.06-474.module_el8.10.0+4162+0aac7c4c
  • perl-Devel-Size
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.83-3.module_el8.6.0+2766+8bf0b7ce
    • Affected before 0.83-3.module_el8.6.0+3181+91434291
  • perl-Digest
    Fixed in 1.20-1.module_el8.6.0+2766+8bf0b7ce
  • perl-Digest-MD5
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.58-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.58-1.module_el8.6.0+3181+91434291
  • perl-Digest-SHA
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.02-2.module_el8.6.0+2766+8bf0b7ce
    • Affected before 1:6.02-2.module_el8.6.0+3181+91434291
  • perl-DirHandle
    Fixed in 1.05-474.module_el8.10.0+4162+0aac7c4c
  • perl-Dumpvalue
    Fixed in 2.27-474.module_el8.10.0+4162+0aac7c4c
  • perl-DynaLoader
    Fixed in 1.47-474.module_el8.10.0+4162+0aac7c4c
  • perl-Encode
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
    • Affected before 4:3.08-461.module_el8.6.0+3181+91434291
  • perl-Encode-Locale
    Fixed in 1.05-10.module_el8.6.0+2766+8bf0b7ce
  • perl-Encode-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
    • Affected before 4:3.08-461.module_el8.6.0+3181+91434291

183 further packages in AlmaLinux 8 not shown (first 40 listed).

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Arch Linux

  • perl
    No fix yet

Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.

CloudLinux 8

  • perl
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:5.26.3-423.el8_10
    • Affected before 4:5.32.1-474.module_el8.10.0+4162+0aac7c4c
  • perl-Algorithm-Diff
    Fixed in 1.1903-10.module_el8.6.0+2766+8bf0b7ce
  • perl-Archive-Tar
    Fixed in 2.38-3.module_el8.6.0+2766+8bf0b7ce
  • perl-Archive-Zip
    Fixed in 1.68-3.module_el8.6.0+2766+8bf0b7ce
  • perl-Attribute-Handlers
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.99-423.el8_10
    • Affected before 1.01-474.module_el8.10.0+4162+0aac7c4c
  • perl-AutoLoader
    Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
  • perl-AutoSplit
    Fixed in 5.74-474.module_el8.10.0+4162+0aac7c4c
  • perl-B
    Fixed in 1.80-474.module_el8.10.0+4162+0aac7c4c
  • perl-Benchmark
    Fixed in 1.23-474.module_el8.10.0+4162+0aac7c4c
  • perl-CPAN
    Fixed in 2.28-5.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-DistnameInfo
    Fixed in 0.12-13.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta
    Fixed in 2.150010-397.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta-Requirements
    Fixed in 2.140-397.module_el8.6.0+2766+8bf0b7ce
  • perl-CPAN-Meta-YAML
    Fixed in 0.018-1001.module_el8.6.0+2766+8bf0b7ce
  • perl-Carp
    Fixed in 1.50-439.module_el8.6.0+2766+8bf0b7ce
  • perl-Class-Struct
    Fixed in 0.66-474.module_el8.10.0+4162+0aac7c4c
  • perl-Compress-Bzip2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.28-2.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.28-2.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Bzip2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.096-1.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Lzma
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.096-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.096-1.module_el8.6.0+3181+91434291
  • perl-Compress-Raw-Zlib
    Fixed in 2.096-2.module_el8.10.0+3779+d5938d28
  • perl-Config-Extensions
    Fixed in 0.03-474.module_el8.10.0+4162+0aac7c4c
  • perl-Config-Perl-V
    Fixed in 0.32-441.module_el8.6.0+2766+8bf0b7ce
  • perl-DBM_Filter
    Fixed in 0.06-474.module_el8.10.0+4162+0aac7c4c
  • perl-DB_File
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.855-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 1.855-1.module_el8.6.0+3181+91434291
  • perl-Data-Dumper
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.174-440.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.174-440.module_el8.6.0+3181+91434291
  • perl-Data-OptList
    Fixed in 0.110-7.module_el8.6.0+2766+8bf0b7ce
  • perl-Data-Section
    Fixed in 0.200007-8.module_el8.6.0+2766+8bf0b7ce
  • perl-Devel-PPPort
    Fixed

    A version is affected if any line below covers it.

    • Affected before 3.62-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 3.62-1.module_el8.6.0+3181+91434291
  • perl-Devel-Peek
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.26-423.el8_10
    • Affected before 1.28-474.module_el8.10.0+4162+0aac7c4c
  • perl-Devel-SelfStubber
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.06-423.el8_10
    • Affected before 1.06-474.module_el8.10.0+4162+0aac7c4c
  • perl-Devel-Size
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.83-3.module_el8.6.0+2766+8bf0b7ce
    • Affected before 0.83-3.module_el8.6.0+3181+91434291
  • perl-Digest
    Fixed in 1.20-1.module_el8.6.0+2766+8bf0b7ce
  • perl-Digest-MD5
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.58-1.module_el8.6.0+2766+8bf0b7ce
    • Affected before 2.58-1.module_el8.6.0+3181+91434291
  • perl-Digest-SHA
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.02-2.module_el8.6.0+2766+8bf0b7ce
    • Affected before 1:6.02-2.module_el8.6.0+3181+91434291
  • perl-DirHandle
    Fixed in 1.05-474.module_el8.10.0+4162+0aac7c4c
  • perl-Dumpvalue
    Fixed in 2.27-474.module_el8.10.0+4162+0aac7c4c
  • perl-DynaLoader
    Fixed in 1.47-474.module_el8.10.0+4162+0aac7c4c
  • perl-Encode
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
    • Affected before 4:3.08-461.module_el8.6.0+3181+91434291
  • perl-Encode-Locale
    Fixed in 1.05-10.module_el8.6.0+2766+8bf0b7ce
  • perl-Encode-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4:3.08-461.module_el8.6.0+2766+8bf0b7ce
    • Affected before 4:3.08-461.module_el8.6.0+3181+91434291

183 further packages in CloudLinux 8 not shown (first 40 listed).

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • perl
    Fixed in 5.36.0-7+deb12u3

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • perl
    Fixed in 5.40.1-5

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • perl
    Fixed in 5.40.1-5

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • perl
    Fixed in 5.34.0-3ubuntu1.5

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • perl
    Fixed in 5.38.2-3.2ubuntu0.2

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • perl
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • perl
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • perl
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • perl
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.