JLSEC-2026-1396
JSON

5.9medium

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

Severity
5.9medium CVSS:3.1 by Julia Security Advisories
Published
Last changed

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

Affected

Product or packageVersionsReported by
Perl_jll (Julia)all versionsJulia Security Advisories

References

http://seclists.org/fulldisclosure/2025/Sep/53web
http://seclists.org/fulldisclosure/2025/Sep/54web
http://seclists.org/fulldisclosure/2025/Sep/55web
http://www.openwall.com/lists/oss-security/2025/05/23/1web
http://www.openwall.com/lists/oss-security/2025/05/30/4web
http://www.openwall.com/lists/oss-security/2025/06/02/2web
http://www.openwall.com/lists/oss-security/2025/06/02/5web
http://www.openwall.com/lists/oss-security/2025/06/02/6web
http://www.openwall.com/lists/oss-security/2025/06/02/7web
http://www.openwall.com/lists/oss-security/2025/06/03/1web
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098226web
https://github.com/Perl/perl5/commit/11a11ecf4bea72b17d250cfb43c897be1341861eweb

Related

Sources

SourceRecordLicence
Julia Security AdvisoriesJLSEC-2026-1396 changed 2026-11-23CC-BY-4.0