CVE-2026-120359: FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current directory to LD_LIBRARY_PATH with the ld_lib option
Robert Rothenberg 30 Nov 2026 00:27 UTC
========================================================================
CVE-2026-120359 CPAN Security Group
========================================================================
CVE ID: CVE-2026-120359
Distribution: FindBin-libs
Versions: from 4.1.0 before 5.4.0
MetaCPAN: https://metacpan.org/dist/FindBin-libs
VCS Repo: https://gitlab.com/lembark/findbin-libs
FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current
directory to LD_LIBRARY_PATH with the ld_lib option
Description
-----------
FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current
directory to LD_LIBRARY_PATH with the ld_lib option.
When LD_LIBRARY_PATH is unset, ld_lib sets it to the directories found
followed by a trailing colon. The dynamic linker reads the empty
element after it as the current directory. The option exists only in
the module installed on Perl 5.40 and later.
A local attacker who can write to the working directory of a program
the script runs can plant a shared library that runs as the script's
user.
Problem types
-------------
- CWE-427 Uncontrolled Search Path Element
Solutions
---------
Upgrade to FindBin-libs 5.4.0 or later.
References
----------
https://gitlab.com/lembark/findbin-libs/-/commit/9cf0a05e97f56899f125d53b9a5e87ea265c9179.patch
https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes