CVE-2025-40909: Perl threads have a working directory race condition where file operations may target unintended paths

Published Feb 17, 2025
·
Updated

AirPort. A permissions issue was addressed with additional restrictions.

Other sources

AMD. A buffer overflow was addressed with improved bounds checking.

— Apple

AppKit. The issue was resolved by blocking unsigned services from launching on Intel Macs.

— Apple

Apple Neural Engine. An out-of-bounds access issue was addressed with improved bounds checking.

— Apple

Apple Online Store Kit. A permissions issue was addressed with additional restrictions.

— Apple

AppleMobileFileIntegrity. A downgrade issue was addressed with additional code-signing restrictions.

— Apple

Credit

Rodolphe BRUNETTI@@eisw0lf(Lupus Nova), Csaba Fitzl@@theevilbit(Kandji), Kirin@@Pwnrin, Zhongquan Li@@Guluisacat, Mickey Jin@@patch1t, Nolan Astrein(Kandji), an anonymous researcher, Noah Gregory (wts.dev), Dawuge(Shuffle Team), Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Rosyna Keller(Totally Not Malicious Software), Guilherme Rambo(Best Buddy Apps), Zhongcheng Li(IES Red Team of ByteDance), 이동하 (Lee Dong Ha)(SSA Lab), Claudio Bozzato(Cisco Talos), Francesco Benvenuto(Cisco Talos), Mickey Jin@@patch1t(Cisco Talos), Kirin@@Pwnrin(Cisco Talos), ABC Research s.r.o., Yinyi Wu@@_3ndy1(Dawn Security Lab of JD), Bilal Siddiqui, @@zlluny(Trend Micro Zero Day Initiative), Shantanu Thakur, Matej Moravec@@MacejkoMoravec, Michael Reeves@@IntegralPilot, Wang Yu(Cyberserval), Anonymous(Trend Micro Zero Day Initiative), Jian Lee@@speedyfriend433, Yiğit Can YILMAZ@@yilmazcanyigit, Ye Zhang@@VAR10CK(Baidu Security), Viktor Oreshkin, Keisuke Hosoda, Nathaniel Oh@@calysteon, Gergely Kalman@@gergely_kalman, Hikerell (Loadshine Lab), Rodolphe Brunetti@@eisw0lf(Lupus Nova), LFY@@secsys(Fudan University), CVE-2025-40909, Seo Hyun-gyu@@wh1te4ever, Minghao Lin@@Y1nKoc, 风 (binaryfmyy), BochengXiang@@Crispr, YingQi Shi@@Mas0nShi, Dora Orak, Google's Threat Analysis Group, @@zlluny(Trend Zero Day Initiative), Mickey Jin@@patch1t(Fudan University), Kirin@@Pwnrin(Fudan University), Duy Trần@@khanhduytran0, @@EthanArbuckle

Affected Software

17 affected componentsFixes available
debian/perl<=5.40.1-2, <=5.36.0-7+deb12u1, <=5.14.0-1, <=5.40.0-8
debian/perl<=5.32.1-4+deb11u3, <=5.32.1-4+deb11u4, <=5.36.0-7+deb12u2
5.36.0-7+deb12u35.40.1-65.40.1-7
Apple macOS Tahoe<26
26
Apple macOS Sequoia<15.7
15.7
Apple macOS Sonoma<14.8
14.8
Microsoft azl3 perl 5.38.2-509<5.38.2-509
5.38.2-509
Microsoft cbl2 perl 5.34.1-491<5.34.1-491
5.34.1-491
Microsoft cm2 perl 5.34.1-491<5.34.1-491
5.34.1-491
IBM Maximo Application Suite - IoT Component<=9.2.0
IBM Maximo Application Suite - IoT Component<=9.1.0
IBM Maximo Application Suite - IoT Component<=9.0.0
ubuntu/perl*
ubuntu/perl*
ubuntu/perl*
ubuntu/perl*
ubuntu/perl<5.34.0-3ubuntu1.5
5.34.0-3ubuntu1.5
ubuntu/perl<5.38.2-3.2ubuntu0.2
5.38.2-3.2ubuntu0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.36.0-7+deb12u3Fixed in 5.40.1-6Fixed in 5.40.1-7
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.7
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.8
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.38.2-509
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.34.1-491
  7. Upgrade

    Upgrade ubuntu/perl to a version that resolves this vulnerability.

    Fixed in 5.34.0-3ubuntu1.5
  8. Upgrade

    Upgrade ubuntu/perl to a version that resolves this vulnerability.

    Fixed in 5.38.2-3.2ubuntu0.2
  9. Upgrade

    Upgrade pyca/cryptography to a version that resolves this vulnerability.

    Fixed in 48.01
  10. Compensating control

    On Intel Macs, block unsigned services from launching.

Event History

Feb 17, 2025
Data Sourced
via Debian·11:33 PM
SeverityAffected Software
May 30, 2025
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
RemedyDescriptionWeakness
Data Sourced
via Red Hat·01:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·01:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:15 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
Severity
Jul 29, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
WeaknessAffected Software
Sep 5, 2025
Updated
via MITRE·01:24 PM
Weakness
Updated
via NVD·02:15 PM
Weakness
Sep 15, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 3, 2026
Updated
via Apple·12:00 AM
Description
Aug 13, 2026
Updated
via Microsoft·06:11 AM
Weakness
Sep 30, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-40909?

The severity of CVE-2025-40909 is categorized as medium due to the race condition in Perl threads that can lead to unintended file operations.

2

How do I fix CVE-2025-40909?

To fix CVE-2025-40909, update Perl to a version beyond 5.40.1-2 or any patched version provided by your distribution.

3

Which versions of Perl are affected by CVE-2025-40909?

CVE-2025-40909 affects Perl versions 5.40.1-2, 5.14.0-1, 5.40.0-8, and 5.36.0-7+deb12u1.

4

What are the potential impacts of CVE-2025-40909?

The potential impacts of CVE-2025-40909 include data corruption or unauthorized access to files due to race conditions in threading.

5

Is CVE-2025-40909 a local or remote vulnerability?

CVE-2025-40909 is primarily considered a local vulnerability as it requires the execution of Perl code on the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203