Technical impact
FindBin::libs versions 4.1.0 through 5.3.x add the current working directory to LD_LIBRARY_PATH when the option ld_lib is used. If LD_LIBRARY_PATH is not already set, the module creates a trailing colon that the dynamic linker interprets as an empty element, which resolves to the current directory. An attacker who can write files into that directory can place a malicious shared library that will be loaded and executed with the privileges of the script’s user, allowing arbitrary code execution on the host.
Affected Systems
The bug exists in the FindBin-libs Perl module provided by LEMBARK, affecting versions 4.1.0 up to, but not including, 5.4.0. The module is only present in Perl 5.40 and later, so any installation of Perl 5.40+ that includes a vulnerable FindBin-libs package is at risk.
Risk and Exploitability
The vulnerability is local; it requires the ability to write to the script’s working directory. The EPSS score is not available, and the vulnerability is not currently listed in the CISA KEV catalog, indicating no known widespread exploitation yet. However, the change to the dynamic linker’s search path is a significant privilege elevation vector for any local user who can inject a library. The CVSS score is not provided in the data, but the impact would be considered high if successfully exploited.