CPANSec disclosed two local code-execution risks in the FindBin-libs Perl distribution on November 30, 2026. It recommended upgrading to distribution version 5.4.0 or later. The affected implementations are installed on Perl 5.40 and later; the disclosures concern FindBin-libs, not a general Perl-core vulnerability. Sources: CPANSec via CVEProject
CPANSec lists CVE-2026-120359 as affecting FindBin-libs distribution versions from 4.1.0 to before 5.4.0. With ld_lib enabled and LD_LIBRARY_PATH unset, a trailing colon adds the current directory to library searches, according to the advisory. CPANSec says a local attacker with write access to a launched program’s working directory can plant a shared library. That library executes as the script’s user. Sources: CPANSec via CVEProject
CPANSec lists CVE-2026-120361 as affecting distribution versions from 4.0.1 to before 5.4.0 through FindBin::Bin, which FindBin::libs loads. The advisory says an unescaped script-directory name enters string eval, allowing a single quote to introduce Perl code. With perl -e, the current directory is used. CPANSec says execution under the victim’s account requires an attacker to control the directory name and induce script execution there. Sources: CPANSec via CVEProject
The changelog dates distribution 5.4.0 to November 15, 2026, before the November 30 disclosures. It records a trailing-colon repair in 5.1.6 on November 1, 2026. Backslash-escaping repairs and punctuation-path tests appear in 5.3.6 on November 8, 2026. Those earlier entries do not establish intermediate releases as safe; both advisories recommend 5.4.0 or later. Sources: CPANSec via CVEProject, MetaCPAN
Distribution and component versions differ: distribution 5.4.0 lists FindBin::Bin v2.3.0 and FindBin::libs v5.1.0. As a precaution based on the disclosed conditions, exposure checks for shared build runners should distinguish directory-name control from working-directory write access. A launched program’s working directory may differ from the script’s directory. The advisories establish neither remote exploitation nor an exploitation incident. Sources: CPANSec via CVEProject, MetaCPAN
What to do
Both CPANSec advisories recommend upgrading to distribution version 5.4.0 or later. The environment checks and regression tests below are precautionary guidance inferred from the disclosed attack conditions, rather than specific advisory recommendations. Sources: CPANSec via CVEProject
- Inventory Perl runtimes, FindBin-libs distribution releases and loaded implementations. Check implementations installed on Perl 5.40 and later against the advisory ranges.
- Locate ld_lib usage and inspect inherited LD_LIBRARY_PATH values, especially when unset. Also check write permissions on launched programs’ working directories.
- For FindBin::Bin installed on Perl 5.40 and later, check who controls directory names where automation executes scripts or perl -e.
- Upgrade FindBin-libs to distribution version 5.4.0 or later, verifying the distribution release rather than a component version.
- After upgrading to distribution 5.4.0 or later, regression-check ld_lib with LD_LIBRARY_PATH unset and with ordinary inherited values. Also check execution from harmless punctuation-bearing directory names. Sources: CPANSec via CVEProject, MetaCPAN