Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Vulnerabilities

Advisory Low CVE Analysis

Two FindBin-libs Perl module flaws in releases before 5.4.0 can lead to code execution

According to an oss-security post attributed to the CPAN Security Group, two CVEs affect the Perl module FindBin-libs. The report says upgrading to version 5.4.0 or later is the remedy for both.

Vulnerabilities

Key points

  • Two CVEs affect the Perl module FindBin-libs: CVE-2026-120359 (FindBin::libs) and CVE-2026-120361 (FindBin::Bin).
  • Both affect releases before 5.4.0; the report says the issues relate to the module as shipped with Perl 5.40 and later.
  • CVE-2026-120359 involves the library search path; CVE-2026-120361 involves evaluation of a directory name, per the report.
  • The report gives no CVSS scores, severity ratings, or exploitation status.

According to an oss-security post attributed to the CPAN Security Group, two CVEs were published for the Perl module FindBin-libs on 30 November 2026.

CVE-2026-120359

This issue affects FindBin::libs releases from 4.1.0 up to, but not including, 5.4.0. The report says the module's ld_lib option can cause the dynamic linker's library search path to include the current directory. When the search path variable is empty, the option fills it with discovered directories followed by a trailing separator, which the linker reads as the working directory. The problem is said to exist only in the module as shipped with Perl 5.40 and later. A local user with write access to the directory a script runs from could place a shared object there that executes as that script's user. The flaw is classified under CWE-427, Uncontrolled Search Path Element.

CVE-2026-120361

This issue affects FindBin::Bin releases from 4.0.1 up to, but not including, 5.4.0. According to the report, FindBin::Bin builds its value by placing a directory path into a quoted string that is then evaluated without escaping. Special characters in a directory name could therefore end the string early, with the remainder processed as Perl code. FindBin::Bin is installed only with Perl 5.40 and later, and FindBin::libs loads it. The report says someone able to create a directory with a crafted name could cause code to run as any user who runs a script from that directory. It is classified under CWE-95, Eval Injection.

Remediation and gaps

The report's vendor-neutral remedy for both CVEs is to upgrade to FindBin-libs 5.4.0 or later. It references a patch commit on GitLab for CVE-2026-120359 and the 5.4.0 changelog on MetaCPAN for both issues. The report does not give CVSS scores or severity ratings, does not say whether either issue has been exploited in the wild, and does not name the discoverer beyond the CPAN Security Group attribution. No interim workaround is described. Readers should consult the original oss-security post for the full details.

What to do

  1. Upgrade FindBin-libs to version 5.4.0 or later, the remedy the report gives for both CVEs.
  2. Review the GitLab patch commit referenced for CVE-2026-120359 and the 5.4.0 changelog on MetaCPAN.
  3. Identify systems running Perl 5.40 or later that use FindBin-libs, since the report ties the issues to that environment.
  4. Read the original oss-security post for full details, as the report does not describe an interim workaround.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“FindBin-libs for Perl (2 CVEs)”

Posted by Robert Rothenberg on Nov 29 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 CVE-2026-120361 FindBin::Bin versions from 4.0.1 before 5.4.0 for Perl execute code from the script's directory name via a string eval ======================================================================== CVE-2026-1203…

Vulnerabilities mentioned