Perl FindBin modules before 5.4.0 have two local code flaws
Original title: FindBin-libs for Perl (2 CVEs)
FindBin::libs can add the current directory to LD_LIBRARY_PATH; FindBin::Bin can eval the script directory name.
Robert Rothenberg reported two Perl module flaws to oss-security on November 29. FindBin::libs from 4.1.0 before 5.4.0 adds the current directory to LD_LIBRARY_PATH when the ld_lib option is used. FindBin::Bin from 4.0.1 before 5.4.0 executes code taken from the script's directory name through a string eval. The excerpt does not describe exploitation.
Unconfirmed: The mailing-list excerpt is truncated and does not state whether either flaw is exploited.
- CVE-2026-120359 affects FindBin::libs from 4.1.0 before 5.4.0.
- The ld_lib option adds the current directory to LD_LIBRARY_PATH.
- CVE-2026-120361 affects FindBin::Bin from 4.0.1 before 5.4.0.
- That module runs a string eval on the script's directory name.
Impact: library-path hijack or code execution from a directory name
| Product | Affected | Fixed in |
|---|---|---|
| FindBin::libs | 4.1.0 before 5.4.0 | 5.4.0 |
| FindBin::Bin | 4.0.1 before 5.4.0 | 5.4.0 |
- 1.Upgrade FindBin::libs and FindBin::Bin to 5.4.0.
- Products
- FindBin::libsFindBin::Bin
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-120359 | Current-directory library load via FindBin::libs ld_lib | — | — | ||
| CVE-2026-120361 | Code injection in Perl FindBin::Bin via directory names | — | — |
From the original article
Posted by Robert Rothenberg on Nov 29 CVE-2026-120359 FindBin::libs versions from 4. 1. 0 before 5.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.