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, ABC Research s.r.o., Mickey Jin@@patch1t, an anonymous researcher, Nolan Astrein(Kandji), Mickey Jin@@patch1t(Cisco Talos), Kirin@@Pwnrin(Cisco Talos), Claudio Bozzato(Cisco Talos), Francesco Benvenuto(Cisco Talos), Zhongquan Li@@Guluisacat, Bilal Siddiqui, Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Michael Reeves@@IntegralPilot, Noah Gregory (wts.dev), Dawuge(Shuffle Team), Rosyna Keller(Totally Not Malicious Software), Guilherme Rambo(Best Buddy Apps), Yinyi Wu@@_3ndy1(Dawn Security Lab of JD), @@zlluny(Trend Micro Zero Day Initiative), 이동하 (Lee Dong Ha)(SSA Lab), Zhongcheng Li(IES Red Team of ByteDance), Matej Moravec@@MacejkoMoravec, Shantanu Thakur, Wang Yu(Cyberserval), Anonymous(Trend Micro Zero Day Initiative), Jian Lee@@speedyfriend433, Yiğit Can YILMAZ@@yilmazcanyigit, Keisuke Hosoda, Ye Zhang@@VAR10CK(Baidu Security), Viktor Oreshkin, Nathaniel Oh@@calysteon, Gergely Kalman@@gergely_kalman, Hikerell (Loadshine Lab), Rodolphe Brunetti@@eisw0lf(Lupus Nova), LFY@@secsys(Fudan University), CVE-2025-40909, @@zlluny, CVE-2024-27280, KPC(Cisco Talos), @@RenwaX23, Ye Zhang(Baidu Security), pattern-f@@pattern_F_, 정답이 아닌 해답, Kirin@@Pwnrin(Computer Science), Cristian Dinca(Computer Science), Romania, CVE-2025-6965, JZ, Seo Hyun-gyu@@wh1te4ever, Luke Roberts@@rookuu, Ferdous Saljooki@@malwarezoo(Jamf), Justin Elliot Fu, Pyrophoria(GrapheneOS), an anonymous researcher(GrapheneOS), James J Kalafus, Michel Migdal, ken super, Jaydev Ahire, Big Bear, Ignacio Sanmillan@@ulexec, Mike Cardwell(grepular), Bob Lord, Pawel Wylecial(REDTEAM), @@zlluny(Trend Zero Day Initiative), Duy Trần@@khanhduytran0, @@EthanArbuckle, Wojciech Regula(SecuRing), Google's Threat Analysis Group, Minghao Lin@@Y1nKoc, 风 (binaryfmyy), BochengXiang@@Crispr, YingQi Shi@@Mas0nShi, Dora Orak, Mickey Jin@@patch1t(Fudan University), Kirin@@Pwnrin(Fudan University)

Affected Software

8 affected componentsFixes available
debian/perl<=5.40.1-2, <=5.36.0-7+deb12u1, <=5.14.0-1, <=5.40.0-8
Apple macOS Sequoia<15.7
15.7
Apple macOS Sonoma<14.8
14.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
Microsoft azl3 perl 5.38.2-509
Microsoft cm2 perl 5.34.1-491
Microsoft cbl2 perl 5.34.1-491

Remediation

Information

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

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 NVD·01:15 PM
DescriptionSeverityWeakness
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
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Sep 15, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
DescriptionWeakness
Updated
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Affected Software
Nov 19, 2025
Data Sourced
via Debian·07:18 PM
Description
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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